Returns the daylight savings offset in minutes for the current timezone at the given time.
Example: for Mountain Standard Time, at March 31st (currently is practicing DST), the returned offset is 60. Example: for Mountain Standard Time, at November 31st (currently is not practicing DST), the returned offset is 0.
<static> getDstOffsetAtGivenTimeInMinutes( date ) → {int}
Name | Type | Description |
date | Date | Date at which to determine daylight savings offset. |
Returns the number of minutes offset for daylight savings for the current timezone and at the given Date, or 0 if the current timezone doesn't practice daylight savings.
[/reference/refbody/section/sectiondiv {""})Type:
int
(sectiondiv]var iDstOffsetAtTime = hwc.getDstOffsetAtGivenTimeInMinutes(date);