Lore archive · Warcraft Wiki, 2023 dump
API time
Last wiki revision 2022-07-21
Returns a timestamp for the specified time or the current Unix time. timestamp = time([dateTable])
- dateTable: - Table specifying a date/time to return the timestamp of; if omitted, a timestamp for the current time (per the local clock) will be returned. This table must have fields, , and , and may have fields , , , and . For a description of these fields, see the Lua reference manual.
- timestamp: - Time in seconds since the epoch. If applicable, the time for.
- This function is Lua's standard os.time, shifted into the global namespace.
- If not given any arguments, will return a value based on the local clock, so it is not synchronized among clients. Consider using instead if you would rather have a value based on the server clock, which IS synchronized among clients.
Prints the current Unix time from the local machine's clock.
Prints the Unix timestamp for a specific date.
Source
https://warcraft.wiki.gg/wiki/API_time · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.