| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| Modifier and Type | Field and Description |
|---|---|
static TemporalType<Calendar,ZonalDateTime> |
TemporalType.JAVA_UTIL_CALENDAR
Bridge between a traditional Java calendar of type
java.util.Calendar and the class ZonalDateTime. |
static TemporalType<ZonedDateTime,ZonalDateTime> |
TemporalType.ZONED_DATE_TIME
Bridge between the JSR-310-class
java.time.ZonedDateTime and
the class ZonalDateTime. |
| Modifier and Type | Method and Description |
|---|---|
static ZonalDateTime |
ZonalDateTime.from(ZonedDateTime zdt)
Short cut for
TemporalType.ZONED_DATE_TIME.translate(zdt). |
ZonalDateTime |
PlainTimestamp.inLocalView()
Equivalent to
inZonalView(Timezone.ofSystem(). |
ZonalDateTime |
Moment.inLocalView()
Creates a combination of this moment and system timezone.
|
ZonalDateTime |
Moment.inZonalView(String tzid)
Creates a combination of this moment and given timezone.
|
ZonalDateTime |
PlainTimestamp.inZonalView(Timezone tz)
Converts this instance to a combination of UTC-moment, given timezone and its zonal timestamp.
|
ZonalDateTime |
Moment.inZonalView(TZID tzid)
Creates a combination of this moment and given timezone.
|
static ZonalDateTime |
ZonalDateTime.parse(String text,
TemporalFormatter<Moment> parser)
Parses given text to a
ZonalDateTime. |
static ZonalDateTime |
ZonalDateTime.parse(String text,
TemporalFormatter<Moment> parser,
ParsePosition position)
Parses given text to a
ZonalDateTime. |
static ZonalDateTime |
ZonalDateTime.read(ObjectInput input)
This is the reverse operation of
write(ObjectOutput). |
| Modifier and Type | Method and Description |
|---|---|
int |
ZonalDateTime.compareByLocalTimestamp(ZonalDateTime zdt)
Compares this instance with another instance on the local timeline.
|
int |
ZonalDateTime.compareByMoment(ZonalDateTime zdt)
Compares this instance with another instance on the global timeline (UTC).
|
Copyright © 2014–2017. All rights reserved.