Package io.deephaven.web.client.api.i18n
Class JsTimeZone
java.lang.Object
io.deephaven.web.client.api.i18n.JsTimeZone
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
- 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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetID()
the timezone code that represents this `TimeZone`, usually the same key as was use to create this instanceint
the standard offset of this timezone, in minutesstatic JsTimeZone
getTimeZone
(String tzCode) Factory method which creates timezone instances from one of the supported keys.static boolean
needsDstAdjustment
(String timeZoneAbbreviation) com.google.gwt.i18n.client.TimeZone
unwrap()
-
Constructor Details
-
JsTimeZone
@JsIgnore public JsTimeZone(com.google.gwt.i18n.client.TimeZone tz)
-
-
Method Details
-
getTimeZone
Factory method which creates timezone instances from one of the supported keys.- Parameters:
tzCode
-- Returns:
- dh.i18n.TimeZone
-
needsDstAdjustment
-
unwrap
@JsIgnore public com.google.gwt.i18n.client.TimeZone unwrap() -
getID
the timezone code that represents this `TimeZone`, usually the same key as was use to create this instance- Returns:
- String
-
getStandardOffset
@JsProperty public int getStandardOffset()the standard offset of this timezone, in minutes- Returns:
- int
-