|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.joda.time.format.ISOPeriodFormat
public class ISOPeriodFormat
Factory that creates instances of PeriodFormatter for the ISO8601 standard.
Period formatting is performed by the PeriodFormatter
class.
Three classes provide factory methods to create formatters, and this is one.
The others are PeriodFormat
and PeriodFormatterBuilder
.
ISOPeriodFormat is thread-safe and immutable, and the formatters it returns are as well.
PeriodFormat
,
PeriodFormatterBuilder
Constructor Summary | |
---|---|
protected |
ISOPeriodFormat()
Constructor. |
Method Summary | |
---|---|
static PeriodFormatter |
alternate()
The alternate ISO format, PyyyymmddThhmmss, which excludes weeks. |
static PeriodFormatter |
alternateExtended()
The alternate ISO format, Pyyyy-mm-ddThh:mm:ss, which excludes weeks. |
static PeriodFormatter |
alternateExtendedWithWeeks()
The alternate ISO format, Pyyyy-Www-ddThh:mm:ss, which excludes months. |
static PeriodFormatter |
alternateWithWeeks()
The alternate ISO format, PyyyyWwwddThhmmss, which excludes months. |
static PeriodFormatter |
standard()
The standard ISO format - PyYmMwWdDThHmMsS. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ISOPeriodFormat()
Method Detail |
---|
public static PeriodFormatter standard()
public static PeriodFormatter alternate()
Even if weeks are present in the period, they are not output. Fractional seconds (milliseconds) will appear if required.
public static PeriodFormatter alternateExtended()
Even if weeks are present in the period, they are not output. Fractional seconds (milliseconds) will appear if required.
public static PeriodFormatter alternateWithWeeks()
Even if months are present in the period, they are not output. Fractional seconds (milliseconds) will appear if required.
public static PeriodFormatter alternateExtendedWithWeeks()
Even if months are present in the period, they are not output. Fractional seconds (milliseconds) will appear if required.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |