public interface PeriodFormatter
PeriodFormatters are immutable.
PeriodFormatter can be instantiated using a PeriodFormatterFactory.
Period,
PeriodBuilder,
PeriodFormatterFactory| Modifier and Type | Method and Description |
|---|---|
String |
format(Period period)
Format a Period.
|
PeriodFormatter |
withLocale(String localeName)
Return a new PeriodFormatter with the same customizations but
using data for a new locale.
|
String format(Period period)
ts - the Period to formatPeriodFormatter withLocale(String localeName)
localeName - the name of the new locale