# LocalePreferences.HourCycle

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/core/text/util/LocalePreferences.HourCycle "View this page in Java")

<br />

```
class LocalePreferences.HourCycle
```

<br />

*** ** * ** ***

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

## Summary

|                                        ### Constants                                         |
|----------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `const `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!` | [DEFAULT](https://developer.android.com/reference/kotlin/androidx/core/text/util/LocalePreferences.HourCycle#DEFAULT())` = ""` Default hour cycle for the locale |
| `const `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!` | [H11](https://developer.android.com/reference/kotlin/androidx/core/text/util/LocalePreferences.HourCycle#H11())` = "h11"` 12 Hour System (0-11)                  |
| `const `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!` | [H12](https://developer.android.com/reference/kotlin/androidx/core/text/util/LocalePreferences.HourCycle#H12())` = "h12"` 12 Hour System (1-12)                  |
| `const `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!` | [H23](https://developer.android.com/reference/kotlin/androidx/core/text/util/LocalePreferences.HourCycle#H23())` = "h23"` 24 Hour System (0-23)                  |
| `const `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!` | [H24](https://developer.android.com/reference/kotlin/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)  

```
const val DEFAULT = "": String!
```

Default hour cycle for the locale  

### H11

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

```
const val H11 = "h11": String!
```

12 Hour System (0-11)  

### H12

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

```
const val H12 = "h12": String!
```

12 Hour System (1-12)  

### H23

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

```
const val H23 = "h23": String!
```

24 Hour System (0-23)  

### H24

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

```
const val H24 = "h24": String!
```

24 Hour System (1-24)