Class JodaCompatibleZonedDateTime


  • public class JodaCompatibleZonedDateTime
    extends java.lang.Object
    A wrapper around ZonedDateTime that exposes joda methods for backcompat.
    • Constructor Detail

      • JodaCompatibleZonedDateTime

        public JodaCompatibleZonedDateTime​(java.time.Instant instant,
                                           java.time.ZoneId zone)
    • Method Detail

      • getZonedDateTime

        public java.time.ZonedDateTime getZonedDateTime()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getDayOfMonth

        public int getDayOfMonth()
      • getDayOfYear

        public int getDayOfYear()
      • getHour

        public int getHour()
      • toLocalDate

        public java.time.LocalDate toLocalDate()
      • toLocalDateTime

        public java.time.LocalDateTime toLocalDateTime()
      • getMinute

        public int getMinute()
      • getMonth

        public java.time.Month getMonth()
      • getMonthValue

        public int getMonthValue()
      • getNano

        public int getNano()
      • getSecond

        public int getSecond()
      • getYear

        public int getYear()
      • getZone

        public java.time.ZoneId getZone()
      • minus

        public java.time.ZonedDateTime minus​(java.time.temporal.TemporalAmount delta)
      • minus

        public java.time.ZonedDateTime minus​(long amount,
                                             java.time.temporal.TemporalUnit unit)
      • minusYears

        public java.time.ZonedDateTime minusYears​(long amount)
      • minusMonths

        public java.time.ZonedDateTime minusMonths​(long amount)
      • minusWeeks

        public java.time.ZonedDateTime minusWeeks​(long amount)
      • minusDays

        public java.time.ZonedDateTime minusDays​(long amount)
      • minusHours

        public java.time.ZonedDateTime minusHours​(long amount)
      • minusMinutes

        public java.time.ZonedDateTime minusMinutes​(long amount)
      • minusSeconds

        public java.time.ZonedDateTime minusSeconds​(long amount)
      • minusNanos

        public java.time.ZonedDateTime minusNanos​(long amount)
      • plus

        public java.time.ZonedDateTime plus​(java.time.temporal.TemporalAmount amount)
      • plus

        public java.time.ZonedDateTime plus​(long amount,
                                            java.time.temporal.TemporalUnit unit)
      • plusDays

        public java.time.ZonedDateTime plusDays​(long amount)
      • plusHours

        public java.time.ZonedDateTime plusHours​(long amount)
      • plusMinutes

        public java.time.ZonedDateTime plusMinutes​(long amount)
      • plusMonths

        public java.time.ZonedDateTime plusMonths​(long amount)
      • plusNanos

        public java.time.ZonedDateTime plusNanos​(long amount)
      • plusSeconds

        public java.time.ZonedDateTime plusSeconds​(long amount)
      • plusWeeks

        public java.time.ZonedDateTime plusWeeks​(long amount)
      • plusYears

        public java.time.ZonedDateTime plusYears​(long amount)
      • toInstant

        public java.time.Instant toInstant()
      • toOffsetDateTime

        public java.time.OffsetDateTime toOffsetDateTime()
      • truncatedTo

        public java.time.ZonedDateTime truncatedTo​(java.time.temporal.TemporalUnit unit)
      • with

        public java.time.ZonedDateTime with​(java.time.temporal.TemporalAdjuster adjuster)
      • with

        public java.time.ZonedDateTime with​(java.time.temporal.TemporalField field,
                                            long newValue)
      • withDayOfMonth

        public java.time.ZonedDateTime withDayOfMonth​(int value)
      • withDayOfYear

        public java.time.ZonedDateTime withDayOfYear​(int value)
      • withEarlierOffsetAtOverlap

        public java.time.ZonedDateTime withEarlierOffsetAtOverlap()
      • withFixedOffsetZone

        public java.time.ZonedDateTime withFixedOffsetZone()
      • withHour

        public java.time.ZonedDateTime withHour​(int value)
      • withLaterOffsetAtOverlap

        public java.time.ZonedDateTime withLaterOffsetAtOverlap()
      • withMinute

        public java.time.ZonedDateTime withMinute​(int value)
      • withMonth

        public java.time.ZonedDateTime withMonth​(int value)
      • withNano

        public java.time.ZonedDateTime withNano​(int value)
      • withSecond

        public java.time.ZonedDateTime withSecond​(int value)
      • withYear

        public java.time.ZonedDateTime withYear​(int value)
      • withZoneSameLocal

        public java.time.ZonedDateTime withZoneSameLocal​(java.time.ZoneId zone)
      • withZoneSameInstant

        public java.time.ZonedDateTime withZoneSameInstant​(java.time.ZoneId zone)
      • getMillis

        @Deprecated
        public long getMillis()
        Deprecated.
      • getCenturyOfEra

        @Deprecated
        public int getCenturyOfEra()
        Deprecated.
      • getEra

        @Deprecated
        public int getEra()
        Deprecated.
      • getHourOfDay

        @Deprecated
        public int getHourOfDay()
        Deprecated.
      • getMillisOfDay

        @Deprecated
        public int getMillisOfDay()
        Deprecated.
      • getMillisOfSecond

        @Deprecated
        public int getMillisOfSecond()
        Deprecated.
      • getMinuteOfDay

        @Deprecated
        public int getMinuteOfDay()
        Deprecated.
      • getMinuteOfHour

        @Deprecated
        public int getMinuteOfHour()
        Deprecated.
      • getMonthOfYear

        @Deprecated
        public int getMonthOfYear()
        Deprecated.
      • getSecondOfDay

        @Deprecated
        public int getSecondOfDay()
        Deprecated.
      • getSecondOfMinute

        @Deprecated
        public int getSecondOfMinute()
        Deprecated.
      • getWeekOfWeekyear

        @Deprecated
        public int getWeekOfWeekyear()
        Deprecated.
      • getWeekyear

        @Deprecated
        public int getWeekyear()
        Deprecated.
      • getYearOfCentury

        @Deprecated
        public int getYearOfCentury()
        Deprecated.
      • getYearOfEra

        @Deprecated
        public int getYearOfEra()
        Deprecated.
      • toString

        @Deprecated
        public java.lang.String toString​(java.lang.String format)
        Deprecated.
      • toString

        @Deprecated
        public java.lang.String toString​(java.lang.String format,
                                         java.util.Locale locale)
        Deprecated.
      • getDayOfWeekEnum

        public java.time.DayOfWeek getDayOfWeekEnum()
      • getDayOfWeek

        @Deprecated
        public int getDayOfWeek()
        Deprecated.