Example usage for Java org.joda.time.format PeriodFormatter fields, constructors, methods, implement or subclass
The text is from its open source code.
PeriodFormatter(PeriodPrinter printer, PeriodParser parser) Creates a new formatter, however you will normally use the factory or the builder. |
Period | parsePeriod(String text) Parses a period from the given text, returning a new Period. |
String | print(ReadablePeriod period) Prints a ReadablePeriod to a new String. |
void | printTo(StringBuffer buf, ReadablePeriod period) Prints a ReadablePeriod to a StringBuffer. |
void | printTo(Writer out, ReadablePeriod period) Prints a ReadablePeriod to a Writer. |
PeriodFormatter | withLocale(Locale locale) Returns a new formatter with a different locale that will be used for printing and parsing. |