Enum Class DateTimeFormatOptions.DayPeriod

java.lang.Object
java.lang.Enum<DateTimeFormatOptions.DayPeriod>
org.patternfly.component.timestamp.DateTimeFormatOptions.DayPeriod
All Implemented Interfaces:
Serializable, Comparable<DateTimeFormatOptions.DayPeriod>, Constable
Enclosing class:
DateTimeFormatOptions

public static enum DateTimeFormatOptions.DayPeriod extends Enum<DateTimeFormatOptions.DayPeriod>
Options for day period formatting. The formatting style used for day periods like "in the morning", "am", "noon", etc.

Note: This option only has an effect if a 12-hour clock (hourCycle: "h12" or hourCycle: "h11") is used. Many locales use the same string irrespective of the width specified.

  • narrow - "mat." (French), "a" (English)
  • _short - "matin" (French), "AM" (English)
  • _long - "du matin" (French), "AM" (English)
  • Enum Constant Details

  • Field Details

    • value

      public final String value
  • Method Details

    • values

      public static DateTimeFormatOptions.DayPeriod[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DateTimeFormatOptions.DayPeriod valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null