WoW:API GetGameTime: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 26: Line 26:


:This is the server's current time, NOT the current time of the user's system.
:This is the server's current time, NOT the current time of the user's system.
----
----
{{Template:WoW API}}
{{WoW API}}
[[Category:API Functions|GetGameTime]]
[[Category:API Core Functions|GetGameTime]]

Revision as of 05:00, 4 January 2006

GetGameTime -Documentation by Zlixar-

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.

Template:WoW API