isDstActiveAtGivenTime( date ) method

Timezone

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.

Type:

boolean

Example

var isAwareAtTime = hwc.isDstActiveAtGivenTime(date);

Source

Timezone.js, line 356.