Package org.elasticsearch.script
Class JodaCompatibleZonedDateTime
- java.lang.Object
-
- org.elasticsearch.script.JodaCompatibleZonedDateTime
-
public class JodaCompatibleZonedDateTime extends java.lang.Object
A wrapper around ZonedDateTime that exposes joda methods for backcompat.
-
-
Constructor Summary
Constructors Constructor Description JodaCompatibleZonedDateTime(java.time.Instant instant, java.time.ZoneId zone)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getCenturyOfEra()
Deprecated.int
getDayOfMonth()
int
getDayOfWeek()
Deprecated.java.time.DayOfWeek
getDayOfWeekEnum()
int
getDayOfYear()
int
getEra()
Deprecated.int
getHour()
int
getHourOfDay()
Deprecated.long
getMillis()
Deprecated.int
getMillisOfDay()
Deprecated.int
getMillisOfSecond()
Deprecated.int
getMinute()
int
getMinuteOfDay()
Deprecated.int
getMinuteOfHour()
Deprecated.java.time.Month
getMonth()
int
getMonthOfYear()
Deprecated.int
getMonthValue()
int
getNano()
int
getSecond()
int
getSecondOfDay()
Deprecated.int
getSecondOfMinute()
Deprecated.int
getWeekOfWeekyear()
Deprecated.int
getWeekyear()
Deprecated.int
getYear()
int
getYearOfCentury()
Deprecated.int
getYearOfEra()
Deprecated.java.time.ZoneId
getZone()
java.time.ZonedDateTime
getZonedDateTime()
int
hashCode()
boolean
isAfter(JodaCompatibleZonedDateTime o)
boolean
isBefore(JodaCompatibleZonedDateTime o)
boolean
isEqual(JodaCompatibleZonedDateTime o)
java.time.ZonedDateTime
minus(long amount, java.time.temporal.TemporalUnit unit)
java.time.ZonedDateTime
minus(java.time.temporal.TemporalAmount delta)
java.time.ZonedDateTime
minusDays(long amount)
java.time.ZonedDateTime
minusHours(long amount)
java.time.ZonedDateTime
minusMinutes(long amount)
java.time.ZonedDateTime
minusMonths(long amount)
java.time.ZonedDateTime
minusNanos(long amount)
java.time.ZonedDateTime
minusSeconds(long amount)
java.time.ZonedDateTime
minusWeeks(long amount)
java.time.ZonedDateTime
minusYears(long amount)
java.time.ZonedDateTime
plus(long amount, java.time.temporal.TemporalUnit unit)
java.time.ZonedDateTime
plus(java.time.temporal.TemporalAmount amount)
java.time.ZonedDateTime
plusDays(long amount)
java.time.ZonedDateTime
plusHours(long amount)
java.time.ZonedDateTime
plusMinutes(long amount)
java.time.ZonedDateTime
plusMonths(long amount)
java.time.ZonedDateTime
plusNanos(long amount)
java.time.ZonedDateTime
plusSeconds(long amount)
java.time.ZonedDateTime
plusWeeks(long amount)
java.time.ZonedDateTime
plusYears(long amount)
java.time.Instant
toInstant()
java.time.LocalDate
toLocalDate()
java.time.LocalDateTime
toLocalDateTime()
java.time.OffsetDateTime
toOffsetDateTime()
java.lang.String
toString()
java.lang.String
toString(java.lang.String format)
Deprecated.java.lang.String
toString(java.lang.String format, java.util.Locale locale)
Deprecated.java.time.ZonedDateTime
truncatedTo(java.time.temporal.TemporalUnit unit)
java.time.ZonedDateTime
with(java.time.temporal.TemporalAdjuster adjuster)
java.time.ZonedDateTime
with(java.time.temporal.TemporalField field, long newValue)
java.time.ZonedDateTime
withDayOfMonth(int value)
java.time.ZonedDateTime
withDayOfYear(int value)
java.time.ZonedDateTime
withEarlierOffsetAtOverlap()
java.time.ZonedDateTime
withFixedOffsetZone()
java.time.ZonedDateTime
withHour(int value)
java.time.ZonedDateTime
withLaterOffsetAtOverlap()
java.time.ZonedDateTime
withMinute(int value)
java.time.ZonedDateTime
withMonth(int value)
java.time.ZonedDateTime
withNano(int value)
java.time.ZonedDateTime
withSecond(int value)
java.time.ZonedDateTime
withYear(int value)
java.time.ZonedDateTime
withZoneSameInstant(java.time.ZoneId zone)
java.time.ZonedDateTime
withZoneSameLocal(java.time.ZoneId zone)
-
-
-
Method Detail
-
getZonedDateTime
public java.time.ZonedDateTime getZonedDateTime()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
isAfter
public boolean isAfter(JodaCompatibleZonedDateTime o)
-
isBefore
public boolean isBefore(JodaCompatibleZonedDateTime o)
-
isEqual
public boolean isEqual(JodaCompatibleZonedDateTime o)
-
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.
-
-