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

*** ** * ** ***


```
public final class DateTimeFormatterSkeletonOptions.Hour
```

<br />

*** ** * ** ***

Hour (numeric).

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour#FORCE_12H_NUMERIC()` Bad i18n. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour#FORCE_12H_TWO_DIGITS()` Bad i18n. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour#FORCE_24H_NUMERIC()` Bad i18n. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour#FORCE_24H_TWO_DIGITS()` Bad i18n. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour#NONE()` Produces no output. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour#NUMERIC()` As many digits as needed to show the full value. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour#TWO_DIGITS()` Two digits, zero pad if needed. |

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour#fromString(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html value)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Hour#getValue()()` |

## Public fields

### FORCE_12H_NUMERIC

```
public static final @NonNull DateTimeFormatterSkeletonOptions.Hour FORCE_12H_NUMERIC
```

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

```
public static final @NonNull DateTimeFormatterSkeletonOptions.Hour FORCE_12H_TWO_DIGITS
```

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

### FORCE_24H_NUMERIC

```
public static final @NonNull DateTimeFormatterSkeletonOptions.Hour FORCE_24H_NUMERIC
```

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

### FORCE_24H_TWO_DIGITS

```
public static final @NonNull DateTimeFormatterSkeletonOptions.Hour FORCE_24H_TWO_DIGITS
```

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

### NONE

```
public static final @NonNull DateTimeFormatterSkeletonOptions.Hour NONE
```

Produces no output.

### NUMERIC

```
public static final @NonNull DateTimeFormatterSkeletonOptions.Hour NUMERIC
```

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

### TWO_DIGITS

```
public static final @NonNull DateTimeFormatterSkeletonOptions.Hour TWO_DIGITS
```

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

## Public methods

### fromString

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

```
public static final @NonNull DateTimeFormatterSkeletonOptions.Hour fromString(@NonNull String value)
```

### getValue

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

```
public final @NonNull String getValue()
```