getOffsetFromUTC( date ) method

Timezone

Syntax

<static> getOffsetFromUTC( date ) → {int}

Parameters

Name Type Description
date Date Date at which time to determine offset, initialized to some valid time.

Returns

Returns the GMT offset in minutes.

Type:

int

Example

var totalOffset = hwc.getOffsetFromUTC(date);

Source

Timezone.js, line 269.