getTimezoneId method

Returns a string containing the current Timezone's standard name.

The name will not change based on daylight savings periods. The native OS returns the string in the current locale where applicable. Currently this string is derived from using available platform OS APIs. The values for the same timezone will be different among platforms.

Syntax

<static> getTimezoneId() → {String}

Returns

Returns a string containing the current Timezone's standard name.

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

Type:

String

(sectiondiv]

Example

var sTzId = hwc.getTimezoneId();

Source

Timezone.js, line 522.