Package | Description |
---|---|
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 | Method and Description |
---|---|
String |
AbstractPeriod.toString(PeriodFormatter formatter)
Uses the specified formatter to convert this period to a String.
|
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.
|
static PeriodFormatter |
PeriodFormat.getDefault()
Gets the default PeriodFormatter.
|
static PeriodFormatter |
ISOPeriodFormat.standard()
The standard ISO format - PyYmMwWdDThHmMsS.
|
PeriodFormatter |
PeriodFormatterBuilder.toFormatter()
Constructs a PeriodFormatter using all the appended elements.
|
PeriodFormatter |
PeriodFormatter.withLocale(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.
|
Modifier and Type | Method and Description |
---|---|
PeriodFormatterBuilder |
PeriodFormatterBuilder.append(PeriodFormatter formatter)
Appends another formatter.
|
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.