Date.getTimezoneOffset

Returns the time-zone offset in minutes for the current locale.
Method of Date

Syntax

getTimezoneOffset()

Parameters

None

Description

The time-zone offset is the difference between local time and Greenwich Mean Time (GMT). Daylight savings time prevents this value from being a constant.

Examples

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.