Enum DateFormat.HourCycle

    • Enum Constant Detail

      • 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 Detail

      • values

        public static DateFormat.HourCycle[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DateFormat.HourCycle c : DateFormat.HourCycle.values())
            System.out.println(c);
        
        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