Enum DBTimeZone

java.lang.Object
java.lang.Enum<DBTimeZone>
com.illumon.iris.db.tables.utils.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
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static DBTimeZone[] 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 DBTimeZone 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 DBTimeZone.
      Returns:
      the underlying Joda time zone.
    • getZoneId

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

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

      public static DBTimeZone[] 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 DBTimeZones ordered by UTC-offset