PeriodFormatters are immutable.
PeriodFormatter can be instantiated using a PeriodFormatterFactory.
Period, PeriodBuilder, PeriodFormatterFactory
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public PeriodFormatter | Returns: a new formatter for the given localethe name of the new locale localeName)Return a new PeriodFormatter with the same customizations but using data for a new locale. |
| format | back to summary |
|---|---|
| public String format(Period period) Format a Period. | |
| withLocale | back to summary |
|---|---|
| public PeriodFormatter withLocale(String localeName) Return a new PeriodFormatter with the same customizations but using data for a new locale. Some locales impose limits on the fields that can be directly formatter.
| |