isDstActiveAtGivenTime( date ) method

Returns whether daylight savings rules are in effect for the current timezone at the given time.

Syntax

<static> isDstActiveAtGivenTime( date ) → {Boolean}

Parameters

Name Type Description
date Date Date at which to determine whether daylight savings is in effect.

Returns

Returns true iff daylight savings rules are in effect at the given time in the current timezone.

[/reference/refbody/section/sectiondiv {""})

Type:

Boolean

(sectiondiv]

Example

var isAwareAtTime = hwc.isDstActiveAtGivenTime(date);

Source

Timezone.js, line 355.