no edit summary
(Use Lua/Libshortcut template. Change category from "LUA Functions" to "Lua functions".) |
No edit summary |
||
| Line 7: | Line 7: | ||
This is a mirror of the LUA function [http://www.lua.org/manual/5.0/manual.html#5.7 os.date()]. | This is a mirror of the LUA function [http://www.lua.org/manual/5.0/manual.html#5.7 os.date()]. | ||
If | Note that the default format returned when calling the date() function with no parameters will be different depending on whether the game is running on a PC or a Macintosh computer. If you want your addon to be compatible with both systems, you should therefore not use date() without parameters, instead, use | ||
date("%m/%d/%y %H:%M:%S") | |||
to display the date in the default PC format | |||
-or- | |||
date("%a %b %d %H:%M:%S %Y") | |||
to display the date in the default Macintosh format | |||
{{LUA}} | {{LUA}} | ||