GetTimeHours

Availability

Flash Lite 1.1.

Description

Returns the hour of the current time of day, based on a 24-hour clock. It is a numeric value (without a leading 0).

Command

Parameters

Value returned

"GetTimeHours"

None.

-1: Not supported.

0 to 23: The current hour.

Example

The following example sets the  hour variable to the hour portion of the current time of day, or to -1:

hour = fscommand2("GetTimeHours");
trace (hour);                                            // output: 14

See also

GetTimeMinutes, GetTimeSeconds, GetTimeZoneOffset