Package io.deephaven.time
Enum TimeZone
- All Implemented Interfaces:
Serializable
,Comparable<TimeZone>
,java.lang.constant.Constable
public enum TimeZone extends Enum<TimeZone>
Defines Deephaven-supported timezones, which may be used for PQ-scheduling and display purposes
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description TZ_AL
America/AnchorageTZ_AT
Canada/AtlanticTZ_BT
America/Sao_PauloTZ_CE
Europe/BerlinTZ_CH
Europe/ZurichTZ_CT
America/ChicagoTZ_ET
America/New_YorkTZ_HI
Pacific/HonoluluTZ_HK
Asia/Hong_KongTZ_IN
Asia/KolkataTZ_JP
Asia/TokyoTZ_KR
Asia/SeoulTZ_LON
Europe/LondonTZ_MN
America/ChicagoTZ_MOS
Europe/MoscowTZ_MT
America/DenverTZ_NF
Canada/NewfoundlandTZ_NL
Europe/AmsterdamTZ_NY
America/New_YorkTZ_PT
America/Los_AngelesTZ_SG
Asia/SingaporeTZ_SHG
Asia/ShanghaiTZ_SYD
Australia/SydneyTZ_TW
Asia/TaipeiTZ_UTC
UTC -
Field Summary
Fields Modifier and Type Field Description static TimeZone
TZ_DEFAULT
The default time zone for display purposes. -
Method Summary
Modifier and Type Method Description org.joda.time.DateTimeZone
getTimeZone()
Returns the underlying Joda time zone for this TimeZone.static TimeZone
getTzDefault()
Get the default time zone.ZoneId
getZoneId()
Returns the Java ZoneID for this DBTimeZone;static TimeZone
lookup(org.joda.time.DateTimeZone dateTimeZone)
Find the corresponding TimeZone for a given Joda DateTimeZone.static void
setTzDefault(TimeZone tzDefault)
Set the default time zone.static TimeZone
valueOf(String name)
Returns the enum constant of this type with the specified name.static TimeZone[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.static TimeZone[]
valuesByOffset()
This method returns the same contents asvalues()
, but ordered by geographic location / UTC offset.
-
Enum Constant Details
-
TZ_NY
America/New_York -
TZ_ET
America/New_York -
TZ_MN
America/Chicago -
TZ_CT
America/Chicago -
TZ_MT
America/Denver -
TZ_PT
America/Los_Angeles -
TZ_HI
Pacific/Honolulu -
TZ_BT
America/Sao_Paulo -
TZ_KR
Asia/Seoul -
TZ_HK
Asia/Hong_Kong -
TZ_JP
Asia/Tokyo -
TZ_AT
Canada/Atlantic -
TZ_NF
Canada/Newfoundland -
TZ_AL
America/Anchorage -
TZ_IN
Asia/Kolkata -
TZ_CE
Europe/Berlin -
TZ_SG
Asia/Singapore -
TZ_LON
Europe/London -
TZ_MOS
Europe/Moscow -
TZ_SHG
Asia/Shanghai -
TZ_CH
Europe/Zurich -
TZ_NL
Europe/Amsterdam -
TZ_TW
Asia/Taipei -
TZ_SYD
Australia/Sydney -
TZ_UTC
UTC
-
-
Field Details
-
TZ_DEFAULT
The default time zone for display purposes.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getTimeZone
public org.joda.time.DateTimeZone getTimeZone()Returns the underlying Joda time zone for this TimeZone.- Returns:
- the underlying Joda time zone.
-
getZoneId
Returns the Java ZoneID for this DBTimeZone;- Returns:
- the ZoneId
-
lookup
Find the corresponding TimeZone for a given Joda DateTimeZone.- Parameters:
dateTimeZone
- the time zone to search for- Returns:
- the corresponding TimeZone, or null if none was found
-
valuesByOffset
This method returns the same contents asvalues()
, but ordered by geographic location / UTC offset. If two elements exist within the same timezone, they are second-order-sorted by name- Returns:
- An array of TimeZones ordered by UTC-offset
-
getTzDefault
Get the default time zone.- Returns:
- the default
TimeZone
-
setTzDefault
Set the default time zone.- Parameters:
tzDefault
- theTimeZone
to be used as the default.
-