WoW:API time: Difference between revisions

Use Lua/Libshortcut template. Change category from "LUA Functions" to "Lua functions".
No edit summary
(Use Lua/Libshortcut template. Change category from "LUA Functions" to "Lua functions".)
Line 1: Line 1:
<tt>time ([table])</tt>
{{:Lua/Libshortcut|time|os.time}}
time ([table])


Returns the current time when called without arguments, or a time representing the date and time specified by the given table. This table must have the following fields: year (four digits), month (1--12), day (1--31), hour (0--23), min (0--59), sec (0--61), wday (weekday, Sunday is 1), yday (day of the year), and isdst (daylight saving flag, a boolean).
Returns the current time when called without arguments, or a time representing the date and time specified by the given table. This table must have the following fields: year (four digits), month (1--12), day (1--31), hour (0--23), min (0--59), sec (0--61), wday (weekday, Sunday is 1), yday (day of the year), and isdst (daylight saving flag, a boolean).
Line 18: Line 19:
--Drena
--Drena


{{Template:WoW API}}
{{LUA}}
Anonymous user