Uses of Interface
java.time.chrono.ChronoZonedDateTime
Package
Description
The main API for dates, times, instants, and durations.
Generic API for calendar systems other than the default ISO.
-
Uses of ChronoZonedDateTime in java.time
Modifier and TypeClassDescriptionfinal class
A date-time with a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00 Europe/Paris
. -
Uses of ChronoZonedDateTime in java.time.chrono
Modifier and TypeMethodDescriptionCombines this time with a time-zone to create aChronoZonedDateTime
.static ChronoZonedDateTime<?>
ChronoZonedDateTime.from
(TemporalAccessor temporal) Obtains an instance ofChronoZonedDateTime
from a temporal object.default ChronoZonedDateTime<D>
ChronoZonedDateTime.minus
(long amountToSubtract, TemporalUnit unit) Returns an object of the same type as this object with the specified period subtracted.default ChronoZonedDateTime<D>
ChronoZonedDateTime.minus
(TemporalAmount amount) Returns an object of the same type as this object with an amount subtracted.ChronoZonedDateTime.plus
(long amountToAdd, TemporalUnit unit) Returns an object of the same type as this object with the specified period added.default ChronoZonedDateTime<D>
ChronoZonedDateTime.plus
(TemporalAmount amount) Returns an object of the same type as this object with an amount added.default ChronoZonedDateTime<D>
ChronoZonedDateTime.with
(TemporalAdjuster adjuster) Returns an adjusted object of the same type as this object with the adjustment made.ChronoZonedDateTime.with
(TemporalField field, long newValue) Returns an object of the same type as this object with the specified field altered.ChronoZonedDateTime.withEarlierOffsetAtOverlap()
Returns a copy of this date-time changing the zone offset to the earlier of the two valid offsets at a local time-line overlap.ChronoZonedDateTime.withLaterOffsetAtOverlap()
Returns a copy of this date-time changing the zone offset to the later of the two valid offsets at a local time-line overlap.ChronoZonedDateTime.withZoneSameInstant
(ZoneId zone) Returns a copy of this date-time with a different time-zone, retaining the instant.ChronoZonedDateTime.withZoneSameLocal
(ZoneId zone) Returns a copy of this date-time with a different time-zone, retaining the local date-time if possible.default ChronoZonedDateTime<? extends ChronoLocalDate>
Chronology.zonedDateTime
(Instant instant, ZoneId zone) Obtains aChronoZonedDateTime
in this chronology from anInstant
.default ChronoZonedDateTime<? extends ChronoLocalDate>
Chronology.zonedDateTime
(TemporalAccessor temporal) Obtains aChronoZonedDateTime
in this chronology from another temporal object.HijrahChronology.zonedDateTime
(Instant instant, ZoneId zone) HijrahChronology.zonedDateTime
(TemporalAccessor temporal) JapaneseChronology.zonedDateTime
(Instant instant, ZoneId zone) JapaneseChronology.zonedDateTime
(TemporalAccessor temporal) MinguoChronology.zonedDateTime
(Instant instant, ZoneId zone) MinguoChronology.zonedDateTime
(TemporalAccessor temporal) ThaiBuddhistChronology.zonedDateTime
(Instant instant, ZoneId zone) ThaiBuddhistChronology.zonedDateTime
(TemporalAccessor temporal) Modifier and TypeMethodDescriptionstatic Comparator<ChronoZonedDateTime<?>>
ChronoZonedDateTime.timeLineOrder()
Gets a comparator that comparesChronoZonedDateTime
in time-line order ignoring the chronology.Modifier and TypeMethodDescriptiondefault int
ChronoZonedDateTime.compareTo
(ChronoZonedDateTime<?> other) Compares this date-time to another date-time, including the chronology.default boolean
ChronoZonedDateTime.isAfter
(ChronoZonedDateTime<?> other) Checks if the instant of this date-time is after that of the specified date-time.default boolean
ChronoZonedDateTime.isBefore
(ChronoZonedDateTime<?> other) Checks if the instant of this date-time is before that of the specified date-time.default boolean
ChronoZonedDateTime.isEqual
(ChronoZonedDateTime<?> other) Checks if the instant of this date-time is equal to that of the specified date-time.