LocalizedPrinterParser

Prints or parses a localized pattern.

Constructors

this
this(FormatStyle dateStyle, FormatStyle timeStyle)

Constructor.

Members

Functions

format
bool format(DateTimePrintContext context, StringBuilder buf)
Undocumented in source. Be warned that the author may not have intended to support it.
parse
int parse(DateTimeParseContext context, string text, int position)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

FORMATTER_CACHE
Map!(string, DateTimeFormatter) FORMATTER_CACHE()

Cache of formatters.

getLocalizedDateTimePattern
string getLocalizedDateTimePattern(FormatStyle dateStyle, FormatStyle timeStyle, Chronology chrono, Locale locale)

Gets the formatting pattern for date and time styles for a locale and chronology. The locale and chronology are used to lookup the locale specific format for the requested dateStyle and/or timeStyle. !(p) If the locale contains the "rg" (region override) <a href="../../util/Locale.html#def_locale_extension">Unicode extensions</a>, the formatting pattern is overridden with the one appropriate for the region.

Inherited Members

From DateTimePrinterParser

format
bool format(DateTimePrintContext context, StringBuilder buf)

Prints the date-time object to the buffer. !(p) The context holds information to use during the format. It also contains the date-time information to be printed. !(p) The buffer must not be mutated beyond the content controlled by the implementation.

parse
int parse(DateTimeParseContext context, string text, int position)

Parses text into date-time information. !(p) The context holds information to use during the parse. It is also used to store the parsed date-time information.

toString
string toString()
Undocumented in source.

Meta