| Package | Description |
|---|---|
| org.threeten.bp |
The main API for dates, times, instants, and durations.
|
| org.threeten.bp.chrono |
Support for calendar systems other than the default ISO.
|
| Modifier and Type | Class | 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 | Description |
|---|---|---|
abstract ChronoZonedDateTime<D> |
ChronoLocalDateTime.atZone(ZoneId zone) |
Combines this time with a time-zone to create a
ChronoZonedDateTime. |
static ChronoZonedDateTime<?> |
ChronoZonedDateTime.from(TemporalAccessor temporal) |
Obtains an instance of
ChronoZonedDateTime from a temporal object. |
ChronoZonedDateTime<D> |
ChronoZonedDateTime.minus(long amountToSubtract,
TemporalUnit unit) |
|
ChronoZonedDateTime<D> |
ChronoZonedDateTime.minus(TemporalAmount amount) |
|
abstract ChronoZonedDateTime<D> |
ChronoZonedDateTime.plus(long amountToAdd,
TemporalUnit unit) |
|
ChronoZonedDateTime<D> |
ChronoZonedDateTime.plus(TemporalAmount amount) |
|
ChronoZonedDateTime<D> |
ChronoZonedDateTime.with(TemporalAdjuster adjuster) |
|
abstract ChronoZonedDateTime<D> |
ChronoZonedDateTime.with(TemporalField field,
long newValue) |
|
abstract ChronoZonedDateTime<D> |
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.
|
abstract ChronoZonedDateTime<D> |
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.
|
abstract ChronoZonedDateTime<D> |
ChronoZonedDateTime.withZoneSameInstant(ZoneId zoneId) |
Returns a copy of this date-time with a different time-zone,
retaining the instant.
|
abstract ChronoZonedDateTime<D> |
ChronoZonedDateTime.withZoneSameLocal(ZoneId zoneId) |
Returns a copy of this ZonedDateTime with a different time-zone,
retaining the local date-time if possible.
|
ChronoZonedDateTime<?> |
Chronology.zonedDateTime(Instant instant,
ZoneId zone) |
Obtains a zoned date-time in this chronology from an
Instant. |
ChronoZonedDateTime<?> |
Chronology.zonedDateTime(TemporalAccessor temporal) |
Obtains a zoned date-time in this chronology from another temporal object.
|
ChronoZonedDateTime<HijrahDate> |
HijrahChronology.zonedDateTime(Instant instant,
ZoneId zone) |
|
ChronoZonedDateTime<HijrahDate> |
HijrahChronology.zonedDateTime(TemporalAccessor temporal) |
|
ChronoZonedDateTime<JapaneseDate> |
JapaneseChronology.zonedDateTime(Instant instant,
ZoneId zone) |
|
ChronoZonedDateTime<JapaneseDate> |
JapaneseChronology.zonedDateTime(TemporalAccessor temporal) |
|
ChronoZonedDateTime<MinguoDate> |
MinguoChronology.zonedDateTime(Instant instant,
ZoneId zone) |
|
ChronoZonedDateTime<MinguoDate> |
MinguoChronology.zonedDateTime(TemporalAccessor temporal) |
|
ChronoZonedDateTime<ThaiBuddhistDate> |
ThaiBuddhistChronology.zonedDateTime(Instant instant,
ZoneId zone) |
|
ChronoZonedDateTime<ThaiBuddhistDate> |
ThaiBuddhistChronology.zonedDateTime(TemporalAccessor temporal) |
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.Comparator<ChronoZonedDateTime<?>> |
ChronoZonedDateTime.timeLineOrder() |
Gets a comparator that compares
ChronoZonedDateTime in
time-line order ignoring the chronology. |
| Modifier and Type | Method | Description |
|---|---|---|
int |
ChronoZonedDateTime.compareTo(ChronoZonedDateTime<?> other) |
Compares this date-time to another date-time, including the chronology.
|
boolean |
ChronoZonedDateTime.isAfter(ChronoZonedDateTime<?> other) |
Checks if the instant of this date-time is after that of the specified date-time.
|
boolean |
ChronoZonedDateTime.isBefore(ChronoZonedDateTime<?> other) |
Checks if the instant of this date-time is before that of the specified date-time.
|
boolean |
ChronoZonedDateTime.isEqual(ChronoZonedDateTime<?> other) |
Checks if the instant of this date-time is equal to that of the specified date-time.
|
Copyright © 2007–2018 ThreeTen.org. All rights reserved.