Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Date > getTimezoneOffset (Date.getTimezoneOffset method) | |||
public getTimezoneOffset() : Number
Returns the difference, in minutes, between the computer's local time and universal time.
Availability: ActionScript 1.0; Flash Player 5
Number - An integer.
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. The output in this example is 420 minutes and displays in the Output panel (7 hours * 60 minutes/hour = 420 minutes). This example is Pacific Daylight Time (PDT, GMT-0700). The result varies depending on location and time of year.
var my_date:Date = new Date(); trace(my_date.getTimezoneOffset());
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00001591.html