# LocalePreferences.HourCycle

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/text/util/LocalePreferences.java+class:androidx.core.text.util.LocalePreferences.HourCycle) Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

*** ** * ** ***


```
public class LocalePreferences.HourCycle
```

<br />

*** ** * ** ***

APIs to get the user's preference of the hour cycle.

## Summary

| ### Constants |
|---|---|
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/text/util/LocalePreferences.HourCycle#DEFAULT() = ""` Default hour cycle for the locale |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/text/util/LocalePreferences.HourCycle#H11() = "h11"` 12 Hour System (0-11) |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/text/util/LocalePreferences.HourCycle#H12() = "h12"` 12 Hour System (1-12) |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/text/util/LocalePreferences.HourCycle#H23() = "h23"` 24 Hour System (0-23) |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/text/util/LocalePreferences.HourCycle#H24() = "h24"` 24 Hour System (1-24) |

## Constants

### DEFAULT

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final String DEFAULT = ""
```

Default hour cycle for the locale

### H11

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final String H11 = "h11"
```

12 Hour System (0-11)

### H12

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final String H12 = "h12"
```

12 Hour System (1-12)

### H23

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final String H23 = "h23"
```

24 Hour System (0-23)

### H24

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public static final String H24 = "h24"
```

24 Hour System (1-24)