WoW API: GetGameTime

Revision as of 00:32, 24 December 2006 by WoWWiki>Starlightblunder ({{wowapi}}, format)

WoW API < GetGameTime

Returns the current server time in hours and minutes

hours,minutes = GetGameTime();

Parameters

Returns

hours
Number - The current hour.
minutes
Number - The minutes passed in the current hour.

Example

local hour,minute = GetGameTime();
message(hour .. ":" .. minute);

Result

A message with the current server time appears.