FormatStyle

Enumeration of the style of a localized date, time or date-time formatter. !(p) These styles are used when obtaining a date-time style from configuration. See {@link DateTimeFormatter} and {@link DateTimeFormatterBuilder} for usage.

@implSpec This is an immutable and thread-safe enum.

@since 1.8

Constructors

this
this(int ord, string name)
Undocumented in source.

Members

Functions

name
string name()
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(FormatStyle h)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(FormatStyle h)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Object obj)
Undocumented in source. Be warned that the author may not have intended to support it.
ordinal
int ordinal()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

FULL
FormatStyle FULL;

Full text style, with the most detail. For example, the format might be 'Tuesday, April 12, 1952 AD' or '3:30:42pm PST'.

LONG
FormatStyle LONG;

Long text style, with lots of detail. For example, the format might be 'January 12, 1952'.

MEDIUM
FormatStyle MEDIUM;

Medium text style, with some detail. For example, the format might be 'Jan 12, 1952'.

SHORT
FormatStyle SHORT;

Short text style, typically numeric. For example, the format might be '12.13.52' or '3:30pm'.

Meta