Date > Date.getTimezoneOffset
Date.getTimezoneOffsetSyntax
mydate
.getTimezoneOffset();
Arguments
None.
Description
Method; returns the difference, in minutes, between the computer's local time and the universal time.
Player
Flash 5 or later.
Example
The following example returns the difference between the local daylight-saving time for San Francisco and the universal time. Daylight-savings time is factored into the returned result only if the date defined in the Date object is during the daylight-savings time.
new Date().getTimezoneOffset();
The result is as follows:
420 (7 hours * 60 minutes/hour = 420 minutes)