Name
getTimezoneOffset() — NN 2 IE J1 ECMA 1
Synopsis
Returns a zero-based integer corresponding to the number of minutes difference between GMT and the client computer’s clock. Time zones to the west of GMT are positive values; time zones to the east are negative values. Numerous bugs plagued this method in earlier browsers, especially Macintosh versions.
Returned Value
Integer between -720 and 720.
Parameters
None.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.