DateTimeFormatter and DateTimeFormatterBuilder classes.
The methods in this class provide localized format pattern strings for use
with methods such as ofLocalizedDateTime(FormatStyle)
and appendLocalized(FormatStyle, FormatStyle).
For details on using the Locale Sensitive SPI, see
LocaleServiceProvider.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract String | Returns: the localized pattern string for the date style, time style, calendar type, and localeFormatStyle representing date style. null
for time-only patternFormatStyle representing time style. null
for date-only patternNon-null calType, Locale String representing a CLDR/LDML
calendar type, such as "japanese", "iso8601".Locale used to obtain the localized pattern.
Non-null.Returns the localized pattern string for the date style, time style, calendar type, and locale. |
| public abstract String | Returns: the localized pattern string for the requested template, calendar type, and localerequested template, Non-null. requestedTemplate, String Non-null calType, Locale String representing a CLDR/LDML
calendar type, such as "japanese", "iso8601".the locale)Locale used to obtain the localized pattern.
Non-null.Returns the localized pattern string for the requested template, calendar type, and locale. |
| DateTimeFormatterPatternProvider | back to summary |
|---|---|
| protected DateTimeFormatterPatternProvider() Sole constructor. (For invocation by subclass constructors, typically implicit.) | |
| getDateTimeFormatterPattern | back to summary |
|---|---|
| public abstract String getDateTimeFormatterPattern(FormatStyle dateStyle, FormatStyle timeStyle, String calType, Locale locale) Returns the localized pattern string for the date style,
time style, calendar type, and locale. Either
| |
| getDateTimeFormatterPattern | back to summary |
|---|---|
| public abstract String getDateTimeFormatterPattern(String requestedTemplate, String calType, Locale locale) Returns the localized pattern string for the requested template,
calendar type, and locale. The
| |