v0.13.8

date

functionimplementedavailable in: camelot

date() is a reference to the os.date function. It is put in the global table as the os module is not available. It returns a string or a table containing the user's machine's current date and time (or the time represented by time), formatted according to the given string format. If one wishes to supply your own format string, then it uses the same rules as strftime() (Windows Mac). The special string *t tells the date() function to return a table. This is a mirror of the Lua function os.date(). 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 Windows 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 to display the date in the default Windows format -or- to display the date in the default Macintosh format. Be aware that if you use an incorrect format string, including any format specifiers not supported by the C library used in WoW, you will get the error message, "format too long". The error has nothing necessarily to do with the length of the format string; it is simply imprecise error wording in that version of Lua.

The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

sources

Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.