| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| net.time4j.format |
Format support of Time4J.
|
| Modifier and Type | Field and Description |
|---|---|
static ChronoFormatter<PlainDate> |
Iso8601Format.BASIC_CALENDAR_DATE
Defines the basic ISO-8601-format with year, month and day
of month using the pattern "uuuuMMdd".
|
static ChronoFormatter<PlainTimestamp> |
Iso8601Format.BASIC_DATE_TIME
Defines the basic ISO-8601-format for a composition of
calendar date and wall time with hour and minute using the pattern
"uuuuMMdd'T'HHmm[ss[SSSSSSSSS]]".
|
static ChronoFormatter<Moment> |
Iso8601Format.BASIC_DATE_TIME_OFFSET
Defines the basic ISO-8601-format for a composition of
calendar date, wall time and timezone offset using the pattern
"uuuuMMdd'T'HHmm[ss[SSSSSSSSS]]X".
|
static ChronoFormatter<PlainDate> |
Iso8601Format.BASIC_ORDINAL_DATE
Defines the basic ISO-8601-format with year and day of year
using the pattern "uuuuDDD".
|
static ChronoFormatter<PlainTime> |
Iso8601Format.BASIC_WALL_TIME
Defines the basic ISO-8601-format for a wall time with
hour and minute using the pattern "HHmm".
|
static ChronoFormatter<PlainDate> |
Iso8601Format.BASIC_WEEK_DATE
Defines the basic ISO-8601-format for a week date using
the pattern "YYYYWwwE".
|
static ChronoFormatter<PlainDate> |
Iso8601Format.EXTENDED_CALENDAR_DATE
Defines the extended ISO-8601-format with year, month and
day of month using the pattern "uuuu-MM-dd".
|
static ChronoFormatter<PlainTimestamp> |
Iso8601Format.EXTENDED_DATE_TIME
Defines the extended ISO-8601-format for a composition of
calendar date and wall time with hour and minute using the pattern
"uuuu-MM-dd'T'HH:mm[:ss[,SSSSSSSSS]]".
|
static ChronoFormatter<Moment> |
Iso8601Format.EXTENDED_DATE_TIME_OFFSET
Defines the extended ISO-8601-format for a composition of
calendar date, wall time and timezone offset using the pattern
"uuuu-MM-dd'T'HH:mm[:ss[,SSSSSSSSS]]XXX".
|
static ChronoFormatter<PlainDate> |
Iso8601Format.EXTENDED_ORDINAL_DATE
Defines the extended ISO-8601-format with year and day
of year using the pattern "uuuu-DDD".
|
static ChronoFormatter<PlainTime> |
Iso8601Format.EXTENDED_WALL_TIME
Defines the extended ISO-8601-format for a wall time
with hour and minute using the pattern "HH:mm".
|
static ChronoFormatter<PlainDate> |
Iso8601Format.EXTENDED_WEEK_DATE
Defines the extended ISO-8601-format for a week date
using the pattern "YYYY-Www-E".
|
| Modifier and Type | Method and Description |
|---|---|
static ChronoFormatter<PlainTime> |
PlainTime.formatter(DisplayMode mode,
Locale locale)
Creates a new formatter which uses the given display mode and locale
for formatting and parsing plain times.
|
static ChronoFormatter<PlainDate> |
PlainDate.formatter(DisplayMode mode,
Locale locale)
Creates a new formatter which uses the given display mode and locale
for formatting and parsing plain dates.
|
static ChronoFormatter<Moment> |
Moment.formatter(DisplayMode mode,
Locale locale)
Creates a new formatter which uses the given display mode and locale
for formatting and parsing UTC-timestamps.
|
static ChronoFormatter<PlainTimestamp> |
PlainTimestamp.formatter(String formatPattern,
ChronoPattern patternType,
Locale locale)
Creates a new formatter which uses the given pattern and locale
for formatting and parsing plain timestamps.
|
static ChronoFormatter<PlainTime> |
PlainTime.formatter(String formatPattern,
ChronoPattern patternType,
Locale locale)
Creates a new formatter which uses the given pattern and locale
for formatting and parsing plain times.
|
static ChronoFormatter<PlainDate> |
PlainDate.formatter(String formatPattern,
ChronoPattern patternType,
Locale locale)
Creates a new formatter which uses the given pattern and locale
for formatting and parsing plain dates.
|
static ChronoFormatter<Moment> |
Moment.formatter(String formatPattern,
ChronoPattern patternType,
Locale locale)
Creates a new formatter which uses the given pattern and locale
for formatting and parsing UTC-timestamps.
|
static ChronoFormatter<Moment> |
Moment.formatterRFC1123()
Defines the RFC-1123-format which is for example used in mail
headers.
|
static ChronoFormatter<PlainTime> |
PlainTime.localFormatter(DisplayMode mode)
Creates a new formatter which uses the given display mode in the
default locale for formatting and parsing plain times.
|
static ChronoFormatter<PlainDate> |
PlainDate.localFormatter(DisplayMode mode)
Creates a new formatter which uses the given display mode in the
default locale for formatting and parsing plain dates.
|
static ChronoFormatter<Moment> |
Moment.localFormatter(DisplayMode mode)
Creates a new formatter which uses the given display mode in the
default locale for formatting and parsing UTC-timestamps.
|
static ChronoFormatter<PlainTimestamp> |
PlainTimestamp.localFormatter(String formatPattern,
ChronoPattern patternType)
Creates a new formatter which uses the given pattern in the
default locale for formatting and parsing plain timestamps.
|
static ChronoFormatter<PlainTime> |
PlainTime.localFormatter(String formatPattern,
ChronoPattern patternType)
Creates a new formatter which uses the given pattern in the
default locale for formatting and parsing plain times.
|
static ChronoFormatter<PlainDate> |
PlainDate.localFormatter(String formatPattern,
ChronoPattern patternType)
Creates a new formatter which uses the given pattern in the
default locale for formatting and parsing plain dates.
|
static ChronoFormatter<Moment> |
Moment.localFormatter(String formatPattern,
ChronoPattern patternType)
Creates a new formatter which uses the given pattern in the
default locale for formatting and parsing UTC-timestamps.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoFormatter<T> |
ChronoFormatter.Builder.build()
Finishes the build and creates a new
ChronoFormatter. |
<A extends Enum<A>> |
ChronoFormatter.with(AttributeKey<A> key,
A value)
Creates a copy of this formatter with given enum-attribute.
|
ChronoFormatter<T> |
ChronoFormatter.with(AttributeKey<Boolean> key,
boolean value)
Creates a copy of this formatter with given boolean-attribute.
|
ChronoFormatter<T> |
ChronoFormatter.with(AttributeKey<Character> key,
char value)
Creates a copy of this formatter with given char-attribute.
|
ChronoFormatter<T> |
ChronoFormatter.with(AttributeKey<Integer> key,
int value)
Creates a copy of this formatter with given int-attribute.
|
ChronoFormatter<T> |
ChronoFormatter.with(Attributes attributes)
Creates a copy of this formatter with given standard attributes.
|
ChronoFormatter<T> |
ChronoFormatter.with(Locale locale)
Creates a copy of this formatter with given locale.
|
<V> ChronoFormatter<T> |
ChronoFormatter.withDefault(ChronoElement<V> element,
V value)
Determines a default replacement value for given element.
|
ChronoFormatter<T> |
ChronoFormatter.withStdTimezone()
Equivalent to
withTimezone(Timezone.ofSystem().getID()). |
ChronoFormatter<T> |
ChronoFormatter.withTimezone(String tzid)
Equivalent to
withTimezone(Timezone.of(tzid).getID()). |
ChronoFormatter<T> |
ChronoFormatter.withTimezone(TZID tzid)
Creates a copy of this formatter with given timezone id which
shall be used in formatting or parsing.
|
| Modifier and Type | Method and Description |
|---|---|
<V extends ChronoEntity<V>> |
ChronoFormatter.Builder.addCustomized(ChronoElement<V> element,
ChronoFormatter<V> formatter)
Defines a customized format element for given chronological
element.
|
Copyright © 2014. All rights reserved.