![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Flash Player 5.
my_date
.getTimezoneOffset()
None.
An integer.
Method; returns the difference, in minutes, between the computer's local time and universal time.
The following example returns the difference between the local daylight saving time for San Francisco and universal time. Daylight saving time is factored into the returned result only if the date defined in the Date object occurs during daylight saving time.
trace(new Date().getTimezoneOffset());
// 420 is displayed in the Output panel
// (7 hours * 60 minutes/hour = 420 minutes)
// This example is Pacific Daylight Time (PDT, GMT-0700).
// Result will vary depending on locale and time of year.
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |