<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mudlet.org/index.php?action=history&amp;feed=atom&amp;title=User%3AKebap%2FManual%3AgetTime</id>
	<title>User:Kebap/Manual:getTime - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mudlet.org/index.php?action=history&amp;feed=atom&amp;title=User%3AKebap%2FManual%3AgetTime"/>
	<link rel="alternate" type="text/html" href="https://wiki.mudlet.org/index.php?title=User:Kebap/Manual:getTime&amp;action=history"/>
	<updated>2026-06-15T02:12:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wiki.mudlet.org/index.php?title=User:Kebap/Manual:getTime&amp;diff=4580&amp;oldid=prev</id>
		<title>Kebap at 19:20, 5 June 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.mudlet.org/index.php?title=User:Kebap/Manual:getTime&amp;diff=4580&amp;oldid=prev"/>
		<updated>2018-06-05T19:20:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:20, 5 June 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==getTime==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;getTime(returntype, format)&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;getTime(returntype, format)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:returntype takes a boolean value (in Lua anything but false or nil will translate to true). If false, the function will return a table in the following format:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:returntype takes a boolean value (in Lua anything but false or nil will translate to true). If false, the function will return a table in the following format:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff::1.12:old-4544:rev-4580 --&gt;
&lt;/table&gt;</summary>
		<author><name>Kebap</name></author>
	</entry>
	<entry>
		<id>https://wiki.mudlet.org/index.php?title=User:Kebap/Manual:getTime&amp;diff=4544&amp;oldid=prev</id>
		<title>Kebap: Created page with &quot;;getTime(returntype, format) :returntype takes a boolean value (in Lua anything but false or nil will translate to true). If false, the function will return a table in the fol...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.mudlet.org/index.php?title=User:Kebap/Manual:getTime&amp;diff=4544&amp;oldid=prev"/>
		<updated>2018-05-29T16:34:22Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;;getTime(returntype, format) :returntype takes a boolean value (in Lua anything but false or nil will translate to true). If false, the function will return a table in the fol...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;;getTime(returntype, format)&lt;br /&gt;
:returntype takes a boolean value (in Lua anything but false or nil will translate to true). If false, the function will return a table in the following format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{ &amp;#039;min&amp;#039;: #, &amp;#039;year&amp;#039;: #, &amp;#039;month&amp;#039;: #, &amp;#039;day&amp;#039;: #, &amp;#039;sec&amp;#039;: #, &amp;#039;hour&amp;#039;: #, &amp;#039;msec&amp;#039;: # }&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If true, it will return the date and time as a string using a format passed to the format arg or the default of &amp;quot;yyyy.MM.dd hh:mm:ss.zzz&amp;quot; if none is supplied:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;2012.02.18 00:52:52.489&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Format expressions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
h               the hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display)&lt;br /&gt;
hh              the hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display)&lt;br /&gt;
H               the hour without a leading zero (0 to 23, even with AM/PM display)&lt;br /&gt;
HH              the hour with a leading zero (00 to 23, even with AM/PM display)&lt;br /&gt;
m               the minute without a leading zero (0 to 59)&lt;br /&gt;
mm              the minute with a leading zero (00 to 59)&lt;br /&gt;
s               the second without a leading zero (0 to 59)&lt;br /&gt;
ss              the second with a leading zero (00 to 59)&lt;br /&gt;
z               the milliseconds without leading zeroes (0 to 999)&lt;br /&gt;
zzz             the milliseconds with leading zeroes (000 to 999)&lt;br /&gt;
AP or A         use AM/PM display. AP will be replaced by either &amp;quot;AM&amp;quot; or &amp;quot;PM&amp;quot;.&lt;br /&gt;
ap or a         use am/pm display. ap will be replaced by either &amp;quot;am&amp;quot; or &amp;quot;pm&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
d               the day as number without a leading zero (1 to 31)&lt;br /&gt;
dd              the day as number with a leading zero (01 to 31)&lt;br /&gt;
ddd             the abbreviated localized day name (e.g. &amp;#039;Mon&amp;#039; to &amp;#039;Sun&amp;#039;). Uses QDate::shortDayName().&lt;br /&gt;
dddd            the long localized day name (e.g. &amp;#039;Monday&amp;#039; to &amp;#039;Qt::Sunday&amp;#039;). Uses QDate::longDayName().&lt;br /&gt;
M               the month as number without a leading zero (1-12)&lt;br /&gt;
MM              the month as number with a leading zero (01-12)&lt;br /&gt;
MMM             the abbreviated localized month name (e.g. &amp;#039;Jan&amp;#039; to &amp;#039;Dec&amp;#039;). Uses QDate::shortMonthName().&lt;br /&gt;
MMMM            the long localized month name (e.g. &amp;#039;January&amp;#039; to &amp;#039;December&amp;#039;). Uses QDate::longMonthName().&lt;br /&gt;
yy              the year as two digit number (00-99)&lt;br /&gt;
yyyy            the year as four digit number&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
All other input characters will be ignored. Any sequence of characters that are enclosed in single quotes will be treated as text and not be used as an expression. Two consecutive single quotes (&amp;lt;nowiki&amp;gt;&amp;#039;&amp;#039;&amp;lt;/nowiki&amp;gt;) are replaced by a single single quote in the output.&lt;br /&gt;
&lt;br /&gt;
;Example&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Get time as a table&lt;br /&gt;
getTime()&lt;br /&gt;
&lt;br /&gt;
-- Get time with default string&lt;br /&gt;
getTime(true)&lt;br /&gt;
&lt;br /&gt;
-- Get time without date and milliseconds&lt;br /&gt;
getTime(true, &amp;quot;hh:mm:ss&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kebap</name></author>
	</entry>
</feed>