GetTimeHour()
現在の時間を取得します。
int GetTimeHour();
Description
現在の時間を、0から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, JP team: Rainie
Send comments on this topic.