DateTimeFormatterSkeletonOptions.Year
public final class DateTimeFormatterSkeletonOptions.Year
Calendar year (numeric).
Summary
Public fields |
|
|---|---|
static final @NonNull DateTimeFormatterSkeletonOptions.Year |
Produces no output. |
static final @NonNull DateTimeFormatterSkeletonOptions.Year |
As many digits as needed to show the full value. |
static final @NonNull DateTimeFormatterSkeletonOptions.Year |
The two low-order digits of the year, zero-padded as necessary. |
Public methods |
|
|---|---|
static final @NonNull DateTimeFormatterSkeletonOptions.Year |
fromString(@NonNull String value) |
final @NonNull String |
getValue() |
Public fields
NUMERIC
public static final @NonNull DateTimeFormatterSkeletonOptions.Year NUMERIC
As many digits as needed to show the full value. E.g. "2021" or "2009".
TWO_DIGITS
public static final @NonNull DateTimeFormatterSkeletonOptions.Year TWO_DIGITS
The two low-order digits of the year, zero-padded as necessary. E.g. "21" or "09".
Public methods
fromString
Added in 1.0.0
public static final @NonNull DateTimeFormatterSkeletonOptions.Year fromString(@NonNull String value)