Enum TimeZone

java.lang.Object
java.lang.Enum<TimeZone>
io.deephaven.time.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
  • Enum Constant Details

    • TZ_NY

      public static final TimeZone TZ_NY
      America/New_York
    • TZ_ET

      public static final TimeZone TZ_ET
      America/New_York
    • TZ_MN

      public static final TimeZone TZ_MN
      America/Chicago
    • TZ_CT

      public static final TimeZone TZ_CT
      America/Chicago
    • TZ_MT

      public static final TimeZone TZ_MT
      America/Denver
    • TZ_PT

      public static final TimeZone TZ_PT
      America/Los_Angeles
    • TZ_HI

      public static final TimeZone TZ_HI
      Pacific/Honolulu
    • TZ_BT

      public static final TimeZone TZ_BT
      America/Sao_Paulo
    • TZ_KR

      public static final TimeZone TZ_KR
      Asia/Seoul
    • TZ_HK

      public static final TimeZone TZ_HK
      Asia/Hong_Kong
    • TZ_JP

      public static final TimeZone TZ_JP
      Asia/Tokyo
    • TZ_AT

      public static final TimeZone TZ_AT
      Canada/Atlantic
    • TZ_NF

      public static final TimeZone TZ_NF
      Canada/Newfoundland
    • TZ_AL

      public static final TimeZone TZ_AL
      America/Anchorage
    • TZ_IN

      public static final TimeZone TZ_IN
      Asia/Kolkata
    • TZ_CE

      public static final TimeZone TZ_CE
      Europe/Berlin
    • TZ_SG

      public static final TimeZone TZ_SG
      Asia/Singapore
    • TZ_LON

      public static final TimeZone TZ_LON
      Europe/London
    • TZ_MOS

      public static final TimeZone TZ_MOS
      Europe/Moscow
    • TZ_SHG

      public static final TimeZone TZ_SHG
      Asia/Shanghai
    • TZ_CH

      public static final TimeZone TZ_CH
      Europe/Zurich
    • TZ_NL

      public static final TimeZone TZ_NL
      Europe/Amsterdam
    • TZ_TW

      public static final TimeZone TZ_TW
      Asia/Taipei
    • TZ_SYD

      public static final TimeZone TZ_SYD
      Australia/Sydney
    • TZ_UTC

      public static final TimeZone TZ_UTC
      UTC
  • Field Details

    • TZ_DEFAULT

      public static TimeZone TZ_DEFAULT
      The default time zone for display purposes.
  • Method Details

    • values

      public static TimeZone[] 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

      public static TimeZone valueOf​(String name)
      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 name
      NullPointerException - 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

      public ZoneId getZoneId()
      Returns the Java ZoneID for this DBTimeZone;
      Returns:
      the ZoneId
    • lookup

      public static TimeZone lookup​(org.joda.time.DateTimeZone dateTimeZone)
      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

      public static TimeZone[] valuesByOffset()
      This method returns the same contents as values(), 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

      public static TimeZone getTzDefault()
      Get the default time zone.
      Returns:
      the default TimeZone
    • setTzDefault

      public static void setTzDefault​(TimeZone tzDefault)
      Set the default time zone.
      Parameters:
      tzDefault - the TimeZone to be used as the default.