Represents the timezones supported by Deephaven. Can be used to format dates, taking into account the offset changing throughout the year (potentially changing each year). These instances mostly are useful at this time to pass to the DateTimeFormat.format() methods, though also support a few properties at this time to see details about each instance.

The following timezone codes are supported when getting a timezone object - instances appearing in the same line will return the same details:

  • GMT/UTC
  • Asia/Tokyo
  • Asia/Seoul
  • Asia/Hong_Kong
  • Asia/Singapore
  • Asia/Calcutta/Asia/Kolkata
  • Europe/Berlin
  • Europe/London
  • America/Sao_Paulo
  • America/St_Johns
  • America/Halifax
  • America/New_York
  • America/Chicago
  • America/Denver
  • America/Los_Angeles
  • America/Anchorage
  • Pacific/Honolulu

A Timezone object can also be created from an abbreviation. The following abbreviations are supported:

  • UTC
  • GMT
  • Z
  • NY
  • ET
  • EST
  • EDT
  • MN
  • CT
  • CST
  • CDT
  • MT
  • MST
  • MDT
  • PT
  • PST
  • PDT
  • HI
  • HST
  • HDT
  • BT
  • BRST
  • BRT
  • KR
  • KST
  • HK
  • HKT
  • JP
  • JST
  • AT
  • AST
  • ADT
  • NF
  • NST
  • NDT
  • AL
  • AKST
  • AKDT
  • IN
  • IST
  • CE
  • CET
  • CEST
  • SG
  • SGT
  • LON
  • BST
  • MOS
  • SHG
  • CH
  • NL
  • TW
  • SYD
  • AEST
  • AEDT

Hierarchy

  • TimeZone

Constructors

Accessors

Methods

Constructors

Accessors

  • get id(): string
  • the timezone code that represents this TimeZone, usually the same key as was use to create this instance

    Returns string

    String

  • get standardOffset(): number
  • the standard offset of this timezone, in minutes

    Returns number

    int

Methods

  • Factory method which creates timezone instances from one of the supported keys.

    Parameters

    • tzCode: string

    Returns TimeZone

    dh.i18n.TimeZone