Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Specific Language Elements > fscommand2() > GetTimeHours | |||
Flash Lite 1.1.
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 |
|---|---|---|
|
|
None. |
-1: Not supported. 0 to 23: The current hour. |
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
GetTimeMinutes, GetTimeSeconds, GetTimeZoneOffset
|
|
|
|