Uses of Class
net.time4j.ZonalDateTime
Package
Description
The main package contains four basic types of ISO-8601, namely
PlainDate
, PlainTime
, PlainTimestamp
and Moment
.Bridge to XML.
-
Uses of ZonalDateTime in net.time4j
Modifier and TypeFieldDescriptionstatic TemporalType<Calendar,ZonalDateTime>
TemporalType.JAVA_UTIL_CALENDAR
Bridge between a traditional Java calendar of typejava.util.Calendar
and the classZonalDateTime
.static TemporalType<ZonedDateTime,ZonalDateTime>
TemporalType.ZONED_DATE_TIME
Bridge between the JSR-310-classjava.time.ZonedDateTime
and the classZonalDateTime
.Modifier and TypeMethodDescriptionstatic ZonalDateTime
ZonalDateTime.from(ZonedDateTime zdt)
Short cut forTemporalType.ZONED_DATE_TIME.translate(zdt)
.Moment.inLocalView()
Creates a combination of this moment and system timezone.PlainTimestamp.inLocalView()
Equivalent toinZonalView(Timezone.ofSystem()
.Moment.inZonalView(String tzid)
Creates a combination of this moment and given timezone.Moment.inZonalView(TZID tzid)
Creates a combination of this moment and given timezone.PlainTimestamp.inZonalView(Timezone tz)
Converts this instance to a combination of UTC-moment, given timezone and its zonal timestamp.static ZonalDateTime
ZonalDateTime.parse(String text, TemporalFormatter<Moment> parser)
Parses given text to aZonalDateTime
.static ZonalDateTime
ZonalDateTime.read(ObjectInput input)
This is the reverse operation ofwrite(ObjectOutput)
.Modifier and TypeMethodDescriptionint
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). -
Uses of ZonalDateTime in net.time4j.xml
Modifier and TypeFieldDescriptionstatic XMLAdapter<XMLGregorianCalendar,ZonalDateTime>
XMLAdapter.XML_DATE_TIME_OFFSET
Bridge between a XML-timestamp according toxsd:dateTime
inclusive timezone-offset and the typeZonalDateTime
.