| Package | Description |
|---|---|
| net.time4j.format.expert |
This package contains the expert-level format- and parse engine of Time4J.
|
| net.time4j.range |
Interval support.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ChronoFormatter<T>
Represents a chronological format for the conversion between a
chronological text and the chronological value of type T.
|
| Modifier and Type | Method and Description |
|---|---|
static ChronoPrinter<PlainTime> |
Iso8601Format.ofBasicTime(IsoDecimalStyle decimalStyle,
ClockUnit precision)
Obtains a printer with given decimal style for printing a clock time
in basic format "HHmm[ss[,SSSSSSSSS]]".
|
static ChronoPrinter<PlainDate> |
Iso8601Format.ofDate(IsoDateStyle style)
Obtains a printer with given styles for printing a calendar date.
|
static ChronoPrinter<PlainTime> |
Iso8601Format.ofExtendedTime(IsoDecimalStyle decimalStyle,
ClockUnit precision)
Obtains a printer with given decimal style for printing a clock time
in extended format "HH:mm[:ss[,SSSSSSSSS]]".
|
static ChronoPrinter<Moment> |
Iso8601Format.ofMoment(IsoDateStyle dateStyle,
IsoDecimalStyle decimalStyle,
ClockUnit precision,
ZonalOffset offset)
Obtains a printer with given styles for printing a moment.
|
static ChronoPrinter<PlainTimestamp> |
Iso8601Format.ofTimestamp(IsoDateStyle dateStyle,
IsoDecimalStyle decimalStyle,
ClockUnit precision)
Obtains a printer with given styles for printing a timestamp.
|
| Modifier and Type | Method and Description |
|---|---|
<V> ChronoFormatter.Builder<T> |
ChronoFormatter.Builder.addCustomized(ChronoElement<V> element,
ChronoPrinter<V> printer,
ChronoParser<V> parser)
Defines a customized format element for given chronological
element.
|
| Modifier and Type | Method and Description |
|---|---|
String |
SimpleInterval.print(ChronoPrinter<T> printer)
Prints this interval using a localized interval pattern.
|
String |
IsoInterval.print(ChronoPrinter<T> printer)
Prints the canonical form of this interval using a localized interval pattern.
|
String |
CalendarPeriod.print(ChronoPrinter<T> printer)
Prints this interval using a localized interval pattern.
|
String |
IsoInterval.print(ChronoPrinter<T> printer,
BracketPolicy policy)
Prints the start and end separated by a slash using given formatter (technical format).
|
void |
IsoInterval.print(ChronoPrinter<T> startFormat,
char separator,
ChronoPrinter<T> endFormat,
BracketPolicy policy,
InfinityStyle infinityStyle,
Appendable buffer)
Prints this interval in a technical format using given formatters and separator.
|
void |
IsoInterval.print(ChronoPrinter<T> startFormat,
char separator,
ChronoPrinter<T> endFormat,
BracketPolicy policy,
InfinityStyle infinityStyle,
Appendable buffer)
Prints this interval in a technical format using given formatters and separator.
|
String |
SimpleInterval.print(ChronoPrinter<T> printer,
String intervalPattern)
Prints this interval in a custom format.
|
String |
IsoInterval.print(ChronoPrinter<T> printer,
String intervalPattern)
Prints the canonical form of this interval in a custom format.
|
String |
CalendarPeriod.print(ChronoPrinter<T> printer,
String intervalPattern)
Prints this interval in a custom format.
|
Copyright © 2014–2021. All rights reserved.