# DateTimeFormatterSkeletonOptions.Hour

# DateTimeFormatterSkeletonOptions.Hour

Artifact:[androidx.core:core-i18n](https://developer.android.com/jetpack/androidx/releases/core)  
[View Source](https://cs.android.com/search?q=file:androidx/core/i18n/DateTimeFormatterSkeletonOptions.kt+class:androidx.core.i18n.DateTimeFormatterSkeletonOptions.Hour)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/core#1.0.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour "View this page in Java")

<br />

```
class DateTimeFormatterSkeletonOptions.Hour
```

<br />

*** ** * ** ***

Hour (numeric).

## Summary

|                                                          ### Public companion functions                                                          |
|--------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [DateTimeFormatterSkeletonOptions.Hour](https://developer.android.com/reference/kotlin/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour) | [fromString](https://developer.android.com/reference/kotlin/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour#fromString(kotlin.String))`(value: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`)` |

|                                                         ### Public companion properties                                                          |
|--------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [DateTimeFormatterSkeletonOptions.Hour](https://developer.android.com/reference/kotlin/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour) | [FORCE_12H_NUMERIC](https://developer.android.com/reference/kotlin/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour#FORCE_12H_NUMERIC()) Bad i18n.                    |
| [DateTimeFormatterSkeletonOptions.Hour](https://developer.android.com/reference/kotlin/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour) | [FORCE_12H_TWO_DIGITS](https://developer.android.com/reference/kotlin/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour#FORCE_12H_TWO_DIGITS()) Bad i18n.              |
| [DateTimeFormatterSkeletonOptions.Hour](https://developer.android.com/reference/kotlin/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour) | [FORCE_24H_NUMERIC](https://developer.android.com/reference/kotlin/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour#FORCE_24H_NUMERIC()) Bad i18n.                    |
| [DateTimeFormatterSkeletonOptions.Hour](https://developer.android.com/reference/kotlin/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour) | [FORCE_24H_TWO_DIGITS](https://developer.android.com/reference/kotlin/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour#FORCE_24H_TWO_DIGITS()) Bad i18n.              |
| [DateTimeFormatterSkeletonOptions.Hour](https://developer.android.com/reference/kotlin/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour) | [NONE](https://developer.android.com/reference/kotlin/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour#NONE()) Produces no output.                                    |
| [DateTimeFormatterSkeletonOptions.Hour](https://developer.android.com/reference/kotlin/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour) | [NUMERIC](https://developer.android.com/reference/kotlin/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour#NUMERIC()) As many digits as needed to show the full value. |
| [DateTimeFormatterSkeletonOptions.Hour](https://developer.android.com/reference/kotlin/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour) | [TWO_DIGITS](https://developer.android.com/reference/kotlin/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour#TWO_DIGITS()) Two digits, zero pad if needed.            |

|                               ### Public properties                               |
|-----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [value](https://developer.android.com/reference/kotlin/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour#value()) |

## Public companion functions

### fromString

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

```
fun fromString(value: String): DateTimeFormatterSkeletonOptions.Hour
```  

## Public companion properties

### FORCE_12H_NUMERIC

```
val FORCE_12H_NUMERIC: DateTimeFormatterSkeletonOptions.Hour
```

Bad i18n. As many digits as needed to show the full value. Day period added automatically. E.g. "8 AM", "1 PM".  

### FORCE_12H_TWO_DIGITS

```
val FORCE_12H_TWO_DIGITS: DateTimeFormatterSkeletonOptions.Hour
```

Bad i18n. Two digits, zero pad if needed. Day period added automatically. E.g. "08 AM", "01 PM".  

### FORCE_24H_NUMERIC

```
val FORCE_24H_NUMERIC: DateTimeFormatterSkeletonOptions.Hour
```

Bad i18n. As many digits as needed to show the full value. No day period. E.g. "8", "13".  

### FORCE_24H_TWO_DIGITS

```
val FORCE_24H_TWO_DIGITS: DateTimeFormatterSkeletonOptions.Hour
```

Bad i18n. Two digits, zero pad if needed. No day period. E.g. "08", "13".  

### NONE

```
val NONE: DateTimeFormatterSkeletonOptions.Hour
```

Produces no output.  

### NUMERIC

```
val NUMERIC: DateTimeFormatterSkeletonOptions.Hour
```

As many digits as needed to show the full value. Day period if used. E.g. "8", "8 AM", "13", "1 PM".  

### TWO_DIGITS

```
val TWO_DIGITS: DateTimeFormatterSkeletonOptions.Hour
```

Two digits, zero pad if needed. DayPeriod if used. Might be bad i18n. E.g. "08", "08 AM", "13", "01 PM".  

## Public properties

### value

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

```
val value: String
```