Added in API level 33
DateFormat.HourCycle
public
static
final
enum
DateFormat.HourCycle
extends Enum<DateFormat.HourCycle>
java.lang.Object | ||
↳ | java.lang.Enum<android.icu.text.DateFormat.HourCycle> | |
↳ | android.icu.text.DateFormat.HourCycle |
Hour Cycle
Summary
Enum values | |
---|---|
DateFormat.HourCycle |
HOUR_CYCLE_11
hour in am/pm (0~11) |
DateFormat.HourCycle |
HOUR_CYCLE_12
hour in am/pm (1~12) |
DateFormat.HourCycle |
HOUR_CYCLE_23
hour in day (0~23) |
DateFormat.HourCycle |
HOUR_CYCLE_24
hour in day (1~24) |
Public methods | |
---|---|
static
DateFormat.HourCycle
|
valueOf(String name)
|
static
final
HourCycle[]
|
values()
|
Inherited methods | |
---|---|
Enum values
HOUR_CYCLE_11
Added in API level 33
public static final DateFormat.HourCycle HOUR_CYCLE_11
hour in am/pm (0~11)
HOUR_CYCLE_12
Added in API level 33
public static final DateFormat.HourCycle HOUR_CYCLE_12
hour in am/pm (1~12)
HOUR_CYCLE_23
Added in API level 33
public static final DateFormat.HourCycle HOUR_CYCLE_23
hour in day (0~23)
HOUR_CYCLE_24
Added in API level 33
public static final DateFormat.HourCycle HOUR_CYCLE_24
hour in day (1~24)
Public methods
valueOf
public static DateFormat.HourCycle valueOf (String name)
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
DateFormat.HourCycle |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-04 UTC."],[],[]]