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 fields

NONE

public static final @NonNull DateTimeFormatterSkeletonOptions.Year NONE

Produces no output.

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-alpha01
public static final @NonNull DateTimeFormatterSkeletonOptions.Year fromString(@NonNull String value)

getValue

Added in 1.0.0-alpha01
public final @NonNull String getValue()