| Package | Description |
|---|---|
| java.time |
The main API for dates, times, instants, and durations.
|
| java.time.chrono |
Generic API for calendar systems other than the default ISO.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ZonedDateTime
A date-time with a time-zone in the ISO-8601 calendar system, such as
2007-12-03T10:15:30+01:00 Europe/Paris.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoZonedDateTime |
ChronoLocalDateTime.atZone(ZoneId
Combines this time with a time-zone to create a
ChronoZonedDateTime.
|
static ChronoZonedDateTime |
ChronoZonedDateTime.from(TemporalAccessor
Obtains an instance of
ChronoZonedDateTime from a temporal object.
|
default ChronoZonedDateTime |
ChronoZonedDateTime.minus(long amountToSubtract, TemporalUnit
Returns an object of the same type as this object with the specified period subtracted.
|
default ChronoZonedDateTime |
ChronoZonedDateTime.minus(TemporalAmount
Returns an object of the same type as this object with an amount subtracted.
|
ChronoZonedDateTime |
ChronoZonedDateTime.plus(long amountToAdd, TemporalUnit
Returns an object of the same type as this object with the specified period added.
|
default ChronoZonedDateTime |
ChronoZonedDateTime.plus(TemporalAmount
Returns an object of the same type as this object with an amount added.
|
default ChronoZonedDateTime |
ChronoZonedDateTime.with(TemporalAdjuster
Returns an adjusted object of the same type as this object with the adjustment made.
|
ChronoZonedDateTime |
ChronoZonedDateTime.with(TemporalField
Returns an object of the same type as this object with the specified field altered.
|
ChronoZonedDateTime |
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 |
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 |
ChronoZonedDateTime.withZoneSameInstant(ZoneId
Returns a copy of this date-time with a different time-zone, retaining the instant.
|
ChronoZonedDateTime |
ChronoZonedDateTime.withZoneSameLocal(ZoneId
Returns a copy of this ZonedDateTime with a different time-zone, retaining the local date-time if possible.
|
ChronoZonedDateTime |
HijrahChronology.zonedDateTime(Instant
|
ChronoZonedDateTime |
ThaiBuddhistChronology.zonedDateTime(Instant
|
default ChronoZonedDateTime |
Chronology.zonedDateTime(Instant
Obtains a
ChronoZonedDateTime in this chronology from an
Instant.
|
ChronoZonedDateTime |
MinguoChronology.zonedDateTime(Instant
|
ChronoZonedDateTime |
JapaneseChronology.zonedDateTime(Instant
|
ChronoZonedDateTime |
HijrahChronology.zonedDateTime(TemporalAccessor
|
ChronoZonedDateTime |
ThaiBuddhistChronology.zonedDateTime(TemporalAccessor
|
default ChronoZonedDateTime |
Chronology.zonedDateTime(TemporalAccessor
Obtains a
ChronoZonedDateTime in this chronology from another temporal object.
|
ChronoZonedDateTime |
MinguoChronology.zonedDateTime(TemporalAccessor
|
ChronoZonedDateTime |
JapaneseChronology.zonedDateTime(TemporalAccessor
|
| Modifier and Type | Method and Description |
|---|---|
static Comparator |
ChronoZonedDateTime.timeLineOrder()
Gets a comparator that compares
ChronoZonedDateTime in time-line order ignoring the chronology.
|
| Modifier and Type | Method and Description |
|---|---|
default int |
ChronoZonedDateTime.compareTo(ChronoZonedDateTime
Compares this date-time to another date-time, including the chronology.
|
default boolean |
ChronoZonedDateTime.isAfter(ChronoZonedDateTime
Checks if the instant of this date-time is after that of the specified date-time.
|
default boolean |
ChronoZonedDateTime.isBefore(ChronoZonedDateTime
Checks if the instant of this date-time is before that of the specified date-time.
|
default boolean |
ChronoZonedDateTime.isEqual(ChronoZonedDateTime
Checks if the instant of this date-time is equal to that of the specified date-time.
|