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 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

      default D toLocalDate()
      The date.
    • toLocalTime

      default LocalTime toLocalTime()
      The time of day.
    • toEpochSecond

      default long toEpochSecond()
      The seconds since 1970-01-01T00:00Z.
    • toInstant

      default Instant toInstant()
      The moment this is.
    • isAfter

      default boolean isAfter(ChronoZonedDateTime<?> other)
      Whether this moment comes after other.
    • isBefore

      default boolean isBefore(ChronoZonedDateTime<?> other)
      Whether this moment comes before other.
    • isEqual

      default boolean isEqual(ChronoZonedDateTime<?> other)
      Whether this is the same moment as other.