Method Date.getTimezoneOffset
Get the local timezone offset from UTS in minutes.
-
Syntax
Number Date.getTimezoneOffset()
This function is a modification of the native Date.getTimezoneOffset as the original one is flawed. The native function returns the offset with the wrong sign so that an offset of 180 minutes becomes -180 minutes. The only thing this function does is multiply the original return value by -1. - Return value The timezone offset from UTC/GMT in minutes.
-
Download
Source
Unless otherwise noted all code in the JSLab Standard Library is licensed as GPLv3. See http://www.gnu.org/licenses/gpl.html for the entire license.
