GetTimeZoneOffset

Availability

Flash Lite 1.1.

Description

Sets a parameter to the number of minutes between the local time zone and universal time (UTC).

Command

Parameters

Value returned

"GetTimeZoneOffset"

timezoneOffset  Number of minutes between the local time zone and UTC. It can be either the name of a variable or a string value that contains the name of a variable.

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.

Example

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

See also

GetTimeHours, GetTimeMinutes, GetTimeSeconds