Uses of Class
org.joda.time.format.PeriodFormatter
Packages that use PeriodFormatter
Package
Description
Provides support for dates, times, time zones, durations, intervals, and
partials.
Implementation package providing abstract and base time classes.
Provides printing and parsing support for instants and durations.
-
Uses of PeriodFormatter in org.joda.time
Methods in org.joda.time with parameters of type PeriodFormatterModifier and TypeMethodDescriptionstatic MutablePeriod
MutablePeriod.parse
(String str, PeriodFormatter formatter) Parses aMutablePeriod
from the specified string using a formatter.static Period
Period.parse
(String str, PeriodFormatter formatter) Parses aPeriod
from the specified string using a formatter. -
Uses of PeriodFormatter in org.joda.time.base
Methods in org.joda.time.base with parameters of type PeriodFormatterModifier and TypeMethodDescriptionAbstractPeriod.toString
(PeriodFormatter formatter) Uses the specified formatter to convert this period to a String. -
Uses of PeriodFormatter in org.joda.time.format
Methods in org.joda.time.format that return PeriodFormatterModifier and TypeMethodDescriptionstatic PeriodFormatter
ISOPeriodFormat.alternate()
The alternate ISO format, PyyyymmddThhmmss, which excludes weeks.static PeriodFormatter
ISOPeriodFormat.alternateExtended()
The alternate ISO format, Pyyyy-mm-ddThh:mm:ss, which excludes weeks.static PeriodFormatter
ISOPeriodFormat.alternateExtendedWithWeeks()
The alternate ISO format, Pyyyy-Www-ddThh:mm:ss, which excludes months.static PeriodFormatter
ISOPeriodFormat.alternateWithWeeks()
The alternate ISO format, PyyyyWwwddThhmmss, which excludes months.static PeriodFormatter
PeriodFormat.getDefault()
Gets the default formatter that outputs words in English.static PeriodFormatter
ISOPeriodFormat.standard()
The standard ISO format - PyYmMwWdDThHmMsS.PeriodFormatterBuilder.toFormatter()
Constructs a PeriodFormatter using all the appended elements.PeriodFormatter.withLocale
(Locale locale) Returns a new formatter with a different locale that will be used for printing and parsing.PeriodFormatter.withParseType
(PeriodType type) Returns a new formatter with a different PeriodType for parsing.static PeriodFormatter
PeriodFormat.wordBased()
Returns a word based formatter for the JDK default locale.static PeriodFormatter
Returns a word based formatter for the specified locale.Methods in org.joda.time.format with parameters of type PeriodFormatterModifier and TypeMethodDescriptionPeriodFormatterBuilder.append
(PeriodFormatter formatter) Appends another formatter.