Package com.illumon.iris.db.tables.utils
Enum DBTimeZone
- All Implemented Interfaces:
Serializable,Comparable<DBTimeZone>,java.lang.constant.Constable
public enum DBTimeZone extends Enum<DBTimeZone>
Defines Deephaven-supported timezones, which may be used for PQ-scheduling and display purposes
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description TZ_ALAmerica/AnchorageTZ_ATCanada/AtlanticTZ_BTAmerica/Sao_PauloTZ_CEEurope/BerlinTZ_CHEurope/ZurichTZ_CTAmerica/ChicagoTZ_ETAmerica/New_YorkTZ_HIPacific/HonoluluTZ_HKAsia/Hong_KongTZ_INAsia/KolkataTZ_JNBAfrica/JohannesburgTZ_JPAsia/TokyoTZ_KLAsia/Kuala_LumpurTZ_KRAsia/SeoulTZ_LONEurope/LondonTZ_MADEurope/MadridTZ_MEXAmerica/Mexico_CityTZ_MNAmerica/ChicagoTZ_MOSEurope/MoscowTZ_MTAmerica/DenverTZ_MTLAmerica/MontrealTZ_NFCanada/NewfoundlandTZ_NLEurope/AmsterdamTZ_NYAmerica/New_YorkTZ_OSLEurope/OsloTZ_PTAmerica/Los_AngelesTZ_SGAsia/SingaporeTZ_SHGAsia/ShanghaiTZ_SKMEurope/StockholmTZ_SYDAustralia/SydneyTZ_TWAsia/TaipeiTZ_UTCUTC -
Field Summary
Fields Modifier and Type Field Description static DBTimeZoneTZ_DEFAULTThe default time zone for display purposes. -
Method Summary
Modifier and Type Method Description org.joda.time.DateTimeZonegetTimeZone()Returns the underlying Joda time zone for this DBTimeZone.ZoneIdgetZoneId()Returns the Java ZoneID for this DBTimeZone;static DBTimeZonelookup(org.joda.time.DateTimeZone dateTimeZone)Find the corresponding DBTimeZone for a given Joda DateTimeZone.static DBTimeZonevalueOf(String name)Returns the enum constant of this type with the specified name.static DBTimeZone[]values()Returns an array containing the constants of this enum type, in the order they are declared.static DBTimeZone[]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 -
TZ_MTL
America/Montreal -
TZ_MEX
America/Mexico_City -
TZ_SKM
Europe/Stockholm -
TZ_OSL
Europe/Oslo -
TZ_MAD
Europe/Madrid -
TZ_JNB
Africa/Johannesburg -
TZ_KL
Asia/Kuala_Lumpur
-
-
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 DBTimeZone.- Returns:
- the underlying Joda time zone.
-
getZoneId
Returns the Java ZoneID for this DBTimeZone;- Returns:
- the ZoneId
-
lookup
Find the corresponding DBTimeZone for a given Joda DateTimeZone.- Parameters:
dateTimeZone- the time zone to search for- Returns:
- the corresponding DBTimeZone, 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 DBTimeZones ordered by UTC-offset
-