Uses of Class
net.time4j.ZonalDateTime
Packages that use 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
Fields in net.time4j with type parameters of type ZonalDateTimeModifier and TypeFieldDescriptionstatic TemporalType<Calendar,ZonalDateTime>TemporalType.JAVA_UTIL_CALENDARBridge between a traditional Java calendar of typejava.util.Calendarand the classZonalDateTime.static TemporalType<ZonedDateTime,ZonalDateTime>TemporalType.ZONED_DATE_TIMEBridge between the JSR-310-classjava.time.ZonedDateTimeand the classZonalDateTime.Methods in net.time4j that return ZonalDateTimeModifier and TypeMethodDescriptionstatic ZonalDateTimeZonalDateTime.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 ZonalDateTimeZonalDateTime.parse(String text, TemporalFormatter<Moment> parser)Parses given text to aZonalDateTime.static ZonalDateTimeZonalDateTime.read(ObjectInput input)This is the reverse operation ofwrite(ObjectOutput).Methods in net.time4j with parameters of type ZonalDateTimeModifier and TypeMethodDescriptionintZonalDateTime.compareByLocalTimestamp(ZonalDateTime zdt)Compares this instance with another instance on the local timeline.intZonalDateTime.compareByMoment(ZonalDateTime zdt)Compares this instance with another instance on the global timeline (UTC). -
Uses of ZonalDateTime in net.time4j.xml
Fields in net.time4j.xml with type parameters of type ZonalDateTimeModifier and TypeFieldDescriptionstatic XMLAdapter<XMLGregorianCalendar,ZonalDateTime>XMLAdapter.XML_DATE_TIME_OFFSETBridge between a XML-timestamp according toxsd:dateTimeinclusive timezone-offset and the typeZonalDateTime.