| java.lang.Object org.joda.time.format.ISOPeriodFormat
ISOPeriodFormat | public class ISOPeriodFormat (Code) | | 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.
author: Brian S O'Neill since: 1.0 See Also: PeriodFormat See Also: PeriodFormatterBuilder |
ISOPeriodFormat | protected ISOPeriodFormat()(Code) | | Constructor.
since: 1.1 (previously private) |
alternate | public static PeriodFormatter alternate()(Code) | | The alternate ISO format, PyyyymmddThhmmss, which excludes weeks.
Even if weeks are present in the period, they are not output.
Fractional seconds (milliseconds) will appear if required.
the formatter |
alternateExtended | public static PeriodFormatter alternateExtended()(Code) | | The alternate ISO format, Pyyyy-mm-ddThh:mm:ss, which excludes weeks.
Even if weeks are present in the period, they are not output.
Fractional seconds (milliseconds) will appear if required.
the formatter |
alternateExtendedWithWeeks | public static PeriodFormatter alternateExtendedWithWeeks()(Code) | | The alternate ISO format, Pyyyy-Www-ddThh:mm:ss, which excludes months.
Even if months are present in the period, they are not output.
Fractional seconds (milliseconds) will appear if required.
the formatter |
alternateWithWeeks | public static PeriodFormatter alternateWithWeeks()(Code) | | The alternate ISO format, PyyyyWwwddThhmmss, which excludes months.
Even if months are present in the period, they are not output.
Fractional seconds (milliseconds) will appear if required.
the formatter |
standard | public static PeriodFormatter standard()(Code) | | The standard ISO format - PyYmMwWdDThHmMsS.
Milliseconds are not output.
Note that the ISO8601 standard actually indicates weeks should not
be shown if any other field is present and vice versa.
the formatter |
|
|