| 程序包 | 说明 |
|---|---|
| com.jn.langx.util.jodatime |
Provides support for dates, times, time zones, durations, intervals, and
partials.
|
| com.jn.langx.util.jodatime.base |
Implementation package providing abstract and base time classes.
|
| com.jn.langx.util.jodatime.format |
| 限定符和类型 | 方法和说明 |
|---|---|
static Period |
Period.parse(String str,
PeriodFormatter formatter)
Parses a
Period from the specified string using a formatter. |
static MutablePeriod |
MutablePeriod.parse(String str,
PeriodFormatter formatter)
Parses a
MutablePeriod from the specified string using a formatter. |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
AbstractPeriod.toString(PeriodFormatter formatter)
Uses the specified formatter to convert this period to a String.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 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.
|
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.
|
static PeriodFormatter |
PeriodFormat.wordBased()
Returns a word based formatter for the JDK default locale.
|
static PeriodFormatter |
PeriodFormat.wordBased(Locale locale)
Returns a word based formatter for the specified locale.
|
| 限定符和类型 | 方法和说明 |
|---|---|
PeriodFormatterBuilder |
PeriodFormatterBuilder.append(PeriodFormatter formatter)
Appends another formatter.
|
Copyright © 2020. All rights reserved.