Interface ChronoZonedDateTime<D extends ChronoLocalDate>
- All Superinterfaces:
Comparable<ChronoZonedDateTime<?>>, Temporal, TemporalAccessor
- All Known Implementing Classes:
ZonedDateTime
public interface ChronoZonedDateTime<D extends ChronoLocalDate>
extends Temporal, Comparable<ChronoZonedDateTime<?>>
A date and a time of day in a time zone.
-
Method Summary
Modifier and TypeMethodDescriptionThe offset from UTC.getZone()The zone.default booleanisAfter(ChronoZonedDateTime<?> other) Whether this moment comes afterother.default booleanisBefore(ChronoZonedDateTime<?> other) Whether this moment comes beforeother.default booleanisEqual(ChronoZonedDateTime<?> other) Whether this is the same moment asother.default longThe seconds since 1970-01-01T00:00Z.default InstantThe moment this is.default DThe date.The date and time on the wall clock.default LocalTimeThe time of day.Methods inherited from interface Comparable
compareTo
-
Method Details
-
toLocalDateTime
ChronoLocalDateTime<D> toLocalDateTime()The date and time on the wall clock. -
getOffset
ZoneOffset getOffset()The offset from UTC. -
getZone
ZoneId getZone()The zone. -
toLocalDate
The date. -
toLocalTime
The time of day. -
toEpochSecond
default long toEpochSecond()The seconds since 1970-01-01T00:00Z. -
toInstant
The moment this is. -
isAfter
Whether this moment comes afterother. -
isBefore
Whether this moment comes beforeother. -
isEqual
Whether this is the same moment asother.
-