Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
No edit summary
 
No edit summary
 
Line 1: Line 1:
  +
Optional breadcrumb: [[Quest:The Zandalar Representative]]
<tt>time ([table])</tt>
 
  +
#[[Quest:The Zandalar Spirit]]
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).
 
  +
##[[Quest:To Fort Livingston]]
  +
##[[Quest:Serpents and Poison]]
  +
##[[Quest:Spirits Be With Us]]
  +
##[[Quest:Nessingwary Will Know]]
  +
##[[Quest:Track the Tracker]]
  +
##[[Quest:The Hunter's Revenge]]
  +
##[[Quest:Follow that Cat]]
  +
##[[Quest:Inspect that Cat]]
  +
##[[Quest:Bury Me With Me Boots...]]
  +
##[[Quest:Warn the Rebel Camp]]
  +
##[[Quest:Defend the Rebel Camp]]
  +
##[[Quest:Go to the Digsite]]
  +
##[[Quest:Voodoo Zombies]]
  +
##[[Quest:Bad Supplies]]
  +
##[[Quest:Warning Booty Bay]]<noinclude>
   
  +
[[Category:Quest chain templates|{{PAGENAME}}]]</noinclude>
The returned value is a number, whose meaning depends on your system. In Posix, Windows, and some other systems, this number counts the number of seconds since some given start time (the "epoch"). In other systems, the meaning is not specified, and the number returned by time can be used only as an argument to date and difftime.
 
 
Note that time() works from the local clock, so it is not synchronized among clients. Very useful for seeding random numbers if you don't need millisecond precision, etc.
 
 
DEFAULT_CHAT_FRAME:AddMessage("Current Time: "..time())
 
 
Might produce:
 
 
Current Time: 1118722038
 
 
--Drena
 
 
[[Category:API Functions|time]]
 
[[Category:API LUA Functions|time]]
 

Revision as of 20:22, 25 February 2011