getTimezoneOffset()
Top  Previous  Next


Syntax
DateObj.getTimezoneOffset()

Arguments
none

Returns
an integer

Description
Method; returns an integer representing the difference between the local time of the system running the Flash player and Universal Time.

Sample

onFrame (1) {
theDate = new Date();
trace(theDate.getTimezoneOffset());
}

// If your system clock is set at GMT-5 (Eastern US, Canada) ... "300" will be displayed in the debug window (60 minutes * 5 hours offset)