GetTimeHour()
Gets the current hour.
int GetTimeHour();
Description
Returns the current hour as an integer between 0 and 23.
Version
1.26
Example
void main() { int nHour = GetTimeHour(); if (nHour != GetLocalInt(OBJECT_SELF, "nLastHour")) { SpeakString("Hour is: " + IntToString(nHour)); SetLocalInt(OBJECT_SELF, "nLastHour", nHour); } return; }
See Also
functions: | GetIsDawn | GetIsDay | GetIsDusk | GetIsNight | GetTimeMillisecond | GetTimeMinute | GetTimeSecond | HoursToSeconds | SetTime |
categories: | Time Functions |
author: Charles Feduke, additional contributor(s): Dana C., Michael Janicki