WoW:API date: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 7: Line 7:
If one supplies no arguments, it returns the current date and time formatted using the following string: <tt>%m/%d/%y %H:%M:%S</tt>
If one supplies no arguments, it returns the current date and time formatted using the following string: <tt>%m/%d/%y %H:%M:%S</tt>


[[Category:API Functions|date]]
{{Template:WoW API}}
[[Category:API LUA Functions|date]]

Revision as of 15:03, 4 January 2006

date ([format [, time]])

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(). The special string *t tells the date() function to return a table.

This is a mirror of the LUA function os.date().

If one supplies no arguments, it returns the current date and time formatted using the following string: %m/%d/%y %H:%M:%S

Template:WoW API