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

values

public static final HourCycle[] values ()

Returns
HourCycle[]