getUsesDST method

Returns whether the device's current timezone practices daylight savings.

If a device's current timezone never practices daylight savings, this function returns "false". If a device's current timezone practices DST, but DST rules are not currently in effect, function returns "true".

Syntax

<static> getUsesDST() → {Boolean}

Returns

Returns true iff the device's current timezone practices daylight savings, irrespective of whether daylight savings is currently in effect.

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

Type:

Boolean

(sectiondiv]

Example

var isDstAware = hwc.getUsesDST();

Source

Timezone.js, line 567.