Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Specific Language Elements > fscommand2() > GetTimeZoneOffset | |||
Flash Lite 1.1.
Sets a parameter to the number of minutes between the local time zone and universal time (UTC).
|
Command |
Parameters |
Value returned |
|---|---|---|
|
|
A positive or a negative numeric value is returned, such as the following: 540: Japan standard time -420: Pacific daylight saving time |
-1: Not supported. 0: Supported. |
The following example either assigns the minutes of offset from UTC to the timezoneoffset variable and sets status to 0 or else sets status to -1:
status = fscommand2("GetTimeZoneOffset", "timezoneoffset");
trace (timezoneoffset); // output: 300
GetTimeHours, GetTimeMinutes, GetTimeSeconds
|
|
|
|