Package | Description |
---|---|
org.joda.time |
Provides support for dates, times, time zones, durations, intervals, and
partials.
|
org.joda.time.base |
Implementation package providing abstract and base time classes.
|
org.joda.time.format |
Provides printing and parsing support for instants and durations.
|
Modifier and Type | Field and Description |
---|---|
private static PeriodFormatter |
Years.PARSER
The paser to use for this class.
|
private static PeriodFormatter |
Seconds.PARSER
The paser to use for this class.
|
private static PeriodFormatter |
Weeks.PARSER
The paser to use for this class.
|
private static PeriodFormatter |
Minutes.PARSER
The paser to use for this class.
|
private static PeriodFormatter |
Hours.PARSER
The paser to use for this class.
|
private static PeriodFormatter |
Days.PARSER
The paser to use for this class.
|
private static PeriodFormatter |
Months.PARSER
The parser to use for this class.
|
Modifier and Type | Method and Description |
---|---|
static Period |
Period.parse(java.lang.String str,
PeriodFormatter formatter)
Parses a
Period from the specified string using a formatter. |
static MutablePeriod |
MutablePeriod.parse(java.lang.String str,
PeriodFormatter formatter)
Parses a
MutablePeriod from the specified string using a formatter. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
AbstractPeriod.toString(PeriodFormatter formatter)
Uses the specified formatter to convert this period to a String.
|
Modifier and Type | Field and Description |
---|---|
private static PeriodFormatter |
ISOPeriodFormat.cAlternate
Cache of alternate months format.
|
private static PeriodFormatter |
ISOPeriodFormat.cAlternateExtended
Cache of alternate extended months format.
|
private static PeriodFormatter |
ISOPeriodFormat.cAlternateExtendedWihWeeks
Cache of alternate extended weeks format.
|
private static PeriodFormatter |
ISOPeriodFormat.cAlternateWithWeeks
Cache of alternate weeks format.
|
private static PeriodFormatter |
ISOPeriodFormat.cStandard
Cache of standard format.
|
private PeriodFormatter |
PeriodFormat.DynamicWordBased.iFormatter
The formatter with the locale selected at construction time.
|
Modifier and Type | Field and Description |
---|---|
private static java.util.concurrent.ConcurrentMap<java.util.Locale,PeriodFormatter> |
PeriodFormat.FORMATTERS
The created formatters.
|
Modifier and Type | Method and Description |
---|---|
static 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.
|
private static PeriodFormatter |
PeriodFormat.buildNonRegExFormatter(java.util.ResourceBundle b,
java.util.Locale locale) |
private static PeriodFormatter |
PeriodFormat.buildRegExFormatter(java.util.ResourceBundle b,
java.util.Locale locale) |
private static PeriodFormatter |
PeriodFormat.buildWordBased(java.util.Locale locale) |
static PeriodFormatter |
PeriodFormat.getDefault()
Gets the default formatter that outputs words in English.
|
static PeriodFormatter |
ISOPeriodFormat.standard()
The standard ISO format - PyYmMwWdDThHmMsS.
|
PeriodFormatter |
PeriodFormatterBuilder.toFormatter()
Constructs a PeriodFormatter using all the appended elements.
|
private static PeriodFormatter |
PeriodFormatterBuilder.toFormatter(java.util.List<java.lang.Object> elementPairs,
boolean notPrinter,
boolean notParser) |
PeriodFormatter |
PeriodFormatter.withLocale(java.util.Locale locale)
Returns a new formatter with a different locale that will be used
for printing and parsing.
|
PeriodFormatter |
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 |
PeriodFormat.wordBased(java.util.Locale locale)
Returns a word based formatter for the specified locale.
|
Modifier and Type | Method and Description |
---|---|
PeriodFormatterBuilder |
PeriodFormatterBuilder.append(PeriodFormatter formatter)
Appends another formatter.
|
Constructor and Description |
---|
DynamicWordBased(PeriodFormatter formatter) |