Enum DateFormat.HourCycle

java.lang.Object
java.lang.Enum<DateFormat.HourCycle>
com.ibm.icu.text.DateFormat.HourCycle
All Implemented Interfaces:
Serializable, Comparable<DateFormat.HourCycle>
Enclosing class:
DateFormat

public static enum DateFormat.HourCycle extends Enum<DateFormat.HourCycle>
Hour Cycle
Author:
Mark Davis, Chen-Lieh Huang, Alan Liu
Status:
Stable ICU 67.
  • Enum Constant Details

    • HOUR_CYCLE_11

      public static final DateFormat.HourCycle HOUR_CYCLE_11
      hour in am/pm (0~11)
      Status:
      Stable ICU 67.
    • HOUR_CYCLE_12

      public static final DateFormat.HourCycle HOUR_CYCLE_12
      hour in am/pm (1~12)
      Status:
      Stable ICU 67.
    • HOUR_CYCLE_23

      public static final DateFormat.HourCycle HOUR_CYCLE_23
      hour in day (0~23)
      Status:
      Stable ICU 67.
    • HOUR_CYCLE_24

      public static final DateFormat.HourCycle HOUR_CYCLE_24
      hour in day (1~24)
      Status:
      Stable ICU 67.
  • Method Details

    • values

      public static DateFormat.HourCycle[] 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 DateFormat.HourCycle 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