Enum BasicTimeZone.LocalOption

java.lang.Object
java.lang.Enum<BasicTimeZone.LocalOption>
com.ibm.icu.util.BasicTimeZone.LocalOption
All Implemented Interfaces:
Serializable, Comparable<BasicTimeZone.LocalOption>
Enclosing class:
BasicTimeZone

public static enum BasicTimeZone.LocalOption extends Enum<BasicTimeZone.LocalOption>
Methods, fields, and other functionality specific to ICU are labeled '[icu]'. Options used by BasicTimeZone.getOffsetFromLocal(long, LocalOption, LocalOption, int[]) to specify how to interpret an input time when it does not exist, or when it is ambiguous, around a time zone transition.
Status:
Stable ICU 69.
  • Enum Constant Details

    • FORMER

      public static final BasicTimeZone.LocalOption FORMER
      An input time is always interpreted as local time before a time zone transition.
      Status:
      Stable ICU 69.
    • LATTER

      public static final BasicTimeZone.LocalOption LATTER
      An input time is always interpreted as local time after a time zone transition.
      Status:
      Stable ICU 69.
    • STANDARD_FORMER

      public static final BasicTimeZone.LocalOption STANDARD_FORMER
      An input time is interpreted as standard time when local time is switched to/from daylight saving time. When both sides of a time zone transition are standard time, or daylight saving time, the local time before the transition is used.
      Status:
      Stable ICU 69.
    • STANDARD_LATTER

      public static final BasicTimeZone.LocalOption STANDARD_LATTER
      An input time is interpreted as standard time when local time is switched to/from daylight saving time. When both sides of a time zone transition are standard time, or daylight saving time, the local time after the transition is used.
      Status:
      Stable ICU 69.
    • DAYLIGHT_FORMER

      public static final BasicTimeZone.LocalOption DAYLIGHT_FORMER
      An input time is interpreted as daylight saving time when local time is switched to/from standard time. When both sides of a time zone transition are standard time, or daylight saving time, the local time before the transition is used.
      Status:
      Stable ICU 69.
    • DAYLIGHT_LATTER

      public static final BasicTimeZone.LocalOption DAYLIGHT_LATTER
      An input time is interpreted as daylight saving time when local time is switched to/from standard time. When both sides of a time zone transition are standard time, or daylight saving time, the local time after the transition is used.
      Status:
      Stable ICU 69.
  • Method Details

    • values

      public static BasicTimeZone.LocalOption[] 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 BasicTimeZone.LocalOption 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