WoW:API GetGameTime: Difference between revisions
Jump to navigation
Jump to search
GetGameTime -Documentation by Zlixar-
No edit summary |
(Fixed typo in example code) |
||
Line 17: | Line 17: | ||
;''Example'' | ;''Example'' | ||
local hour,minute = | local hour,minute = GetGameTime(); | ||
;''Result'' | ;''Result'' | ||
hour = 16 | hour = 16 |
Revision as of 18:41, 6 March 2005
Returns the current server time in hours and minutes
hours,minutes = GetGameTime();
- Arguments
- none
- Returns
- hours
- Number - The current hour.
- minutes
- Number - The minutes passed in the current hour.
- Example
local hour,minute = GetGameTime();
- Result
hour = 16 minute = 30
- Details
- This is the server's current time, NOT the current time of the user's system.