public static enum DateFormat.HourCycle extends Enum<DateFormat.HourCycle>
Enum Constant and Description |
---|
HOUR_CYCLE_11
hour in am/pm (0~11)
|
HOUR_CYCLE_12
hour in am/pm (1~12)
|
HOUR_CYCLE_23
hour in day (0~23)
|
HOUR_CYCLE_24
hour in day (1~24)
|
Modifier and Type | Method and Description |
---|---|
static DateFormat.HourCycle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateFormat.HourCycle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateFormat.HourCycle HOUR_CYCLE_11
public static final DateFormat.HourCycle HOUR_CYCLE_12
public static final DateFormat.HourCycle HOUR_CYCLE_23
public static final DateFormat.HourCycle HOUR_CYCLE_24
public static DateFormat.HourCycle[] values()
for (DateFormat.HourCycle c : DateFormat.HourCycle.values()) System.out.println(c);
public static DateFormat.HourCycle valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016 Unicode, Inc. and others.