IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Shared API for package java.time.chrono
editShared API for package java.time.chrono
editSee the Shared API for a high-level overview of all packages and classes.
AbstractChronology
edit- int compareTo(Chronology)
- ChronoLocalDate date(TemporalAccessor)
- ChronoLocalDate date(int, int, int)
- ChronoLocalDate date(Era, int, int, int)
- ChronoLocalDate dateEpochDay(long)
- ChronoLocalDate dateYearDay(int, int)
- ChronoLocalDate dateYearDay(Era, int, int)
- boolean equals(Object)
- Era eraOf(int)
- List eras()
- String getCalendarType()
- String getDisplayName(TextStyle, Locale)
- String getId()
- int hashCode()
- boolean isLeapYear(long)
- ChronoLocalDateTime localDateTime(TemporalAccessor)
- ChronoPeriod period(int, int, int)
- int prolepticYear(Era, int)
- ValueRange range(ChronoField)
- ChronoLocalDate resolveDate(Map, ResolverStyle)
- String toString()
- ChronoZonedDateTime zonedDateTime(TemporalAccessor)
- ChronoZonedDateTime zonedDateTime(Instant, ZoneId)
ChronoLocalDate
edit- static ChronoLocalDate from(TemporalAccessor)
- static Comparator timeLineOrder()
- Temporal adjustInto(Temporal)
- ChronoLocalDateTime atTime(LocalTime)
- int compareTo(ChronoLocalDate)
- boolean equals(Object)
- String format(DateTimeFormatter)
- int get(TemporalField)
- Chronology getChronology()
- Era getEra()
- long getLong(TemporalField)
- int hashCode()
- boolean isAfter(ChronoLocalDate)
- boolean isBefore(ChronoLocalDate)
- boolean isEqual(ChronoLocalDate)
- boolean isLeapYear()
- boolean isSupported(TemporalField)
- int lengthOfMonth()
- int lengthOfYear()
- ChronoLocalDate minus(TemporalAmount)
- ChronoLocalDate minus(long, TemporalUnit)
- ChronoLocalDate plus(TemporalAmount)
- ChronoLocalDate plus(long, TemporalUnit)
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- long toEpochDay()
- String toString()
- ChronoPeriod until(ChronoLocalDate)
- long until(Temporal, TemporalUnit)
- ChronoLocalDate with(TemporalAdjuster)
- ChronoLocalDate with(TemporalField, long)
ChronoLocalDateTime
edit- static ChronoLocalDateTime from(TemporalAccessor)
- static Comparator timeLineOrder()
- Temporal adjustInto(Temporal)
- ChronoZonedDateTime atZone(ZoneId)
- int compareTo(ChronoLocalDateTime)
- boolean equals(Object)
- String format(DateTimeFormatter)
- int get(TemporalField)
- Chronology getChronology()
- long getLong(TemporalField)
- int hashCode()
- boolean isAfter(ChronoLocalDateTime)
- boolean isBefore(ChronoLocalDateTime)
- boolean isEqual(ChronoLocalDateTime)
- boolean isSupported(TemporalField)
- ChronoLocalDateTime minus(TemporalAmount)
- ChronoLocalDateTime minus(long, TemporalUnit)
- ChronoLocalDateTime plus(TemporalAmount)
- ChronoLocalDateTime plus(long, TemporalUnit)
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- long toEpochSecond(ZoneOffset)
- Instant toInstant(ZoneOffset)
- ChronoLocalDate toLocalDate()
- LocalTime toLocalTime()
- String toString()
- long until(Temporal, TemporalUnit)
- ChronoLocalDateTime with(TemporalAdjuster)
- ChronoLocalDateTime with(TemporalField, long)
ChronoPeriod
edit- static ChronoPeriod between(ChronoLocalDate, ChronoLocalDate)
- Temporal addTo(Temporal)
- boolean equals(Object)
- long get(TemporalUnit)
- Chronology getChronology()
- List getUnits()
- int hashCode()
- boolean isNegative()
- boolean isZero()
- ChronoPeriod minus(TemporalAmount)
- ChronoPeriod multipliedBy(int)
- ChronoPeriod negated()
- ChronoPeriod normalized()
- ChronoPeriod plus(TemporalAmount)
- Temporal subtractFrom(Temporal)
- String toString()
ChronoZonedDateTime
edit- static ChronoZonedDateTime from(TemporalAccessor)
- static Comparator timeLineOrder()
- int compareTo(ChronoZonedDateTime)
- boolean equals(Object)
- String format(DateTimeFormatter)
- int get(TemporalField)
- Chronology getChronology()
- long getLong(TemporalField)
- ZoneOffset getOffset()
- ZoneId getZone()
- int hashCode()
- boolean isAfter(ChronoZonedDateTime)
- boolean isBefore(ChronoZonedDateTime)
- boolean isEqual(ChronoZonedDateTime)
- boolean isSupported(TemporalField)
- ChronoZonedDateTime minus(TemporalAmount)
- ChronoZonedDateTime minus(long, TemporalUnit)
- ChronoZonedDateTime plus(TemporalAmount)
- ChronoZonedDateTime plus(long, TemporalUnit)
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- long toEpochSecond()
- Instant toInstant()
- ChronoLocalDate toLocalDate()
- ChronoLocalDateTime toLocalDateTime()
- LocalTime toLocalTime()
- String toString()
- long until(Temporal, TemporalUnit)
- ChronoZonedDateTime with(TemporalAdjuster)
- ChronoZonedDateTime with(TemporalField, long)
- ChronoZonedDateTime withEarlierOffsetAtOverlap()
- ChronoZonedDateTime withLaterOffsetAtOverlap()
- ChronoZonedDateTime withZoneSameInstant(ZoneId)
- ChronoZonedDateTime withZoneSameLocal(ZoneId)
Chronology
edit- static Chronology from(TemporalAccessor)
- static Set getAvailableChronologies()
- static Chronology of(String)
- static Chronology ofLocale(Locale)
- int compareTo(Chronology)
- ChronoLocalDate date(TemporalAccessor)
- ChronoLocalDate date(int, int, int)
- ChronoLocalDate date(Era, int, int, int)
- ChronoLocalDate dateEpochDay(long)
- ChronoLocalDate dateYearDay(int, int)
- ChronoLocalDate dateYearDay(Era, int, int)
- boolean equals(Object)
- Era eraOf(int)
- List eras()
- String getCalendarType()
- String getDisplayName(TextStyle, Locale)
- String getId()
- int hashCode()
- boolean isLeapYear(long)
- ChronoLocalDateTime localDateTime(TemporalAccessor)
- ChronoPeriod period(int, int, int)
- int prolepticYear(Era, int)
- ValueRange range(ChronoField)
- ChronoLocalDate resolveDate(Map, ResolverStyle)
- String toString()
- ChronoZonedDateTime zonedDateTime(TemporalAccessor)
- ChronoZonedDateTime zonedDateTime(Instant, ZoneId)
Era
edit- Temporal adjustInto(Temporal)
- boolean equals(Object)
- int get(TemporalField)
- String getDisplayName(TextStyle, Locale)
- long getLong(TemporalField)
- int getValue()
- int hashCode()
- boolean isSupported(TemporalField)
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- String toString()
HijrahChronology
edit- static HijrahChronology INSTANCE
- int compareTo(Chronology)
- HijrahDate date(TemporalAccessor)
- HijrahDate date(int, int, int)
- HijrahDate date(Era, int, int, int)
- HijrahDate dateEpochDay(long)
- HijrahDate dateYearDay(int, int)
- HijrahDate dateYearDay(Era, int, int)
- boolean equals(Object)
- HijrahEra eraOf(int)
- List eras()
- String getCalendarType()
- String getDisplayName(TextStyle, Locale)
- String getId()
- int hashCode()
- boolean isLeapYear(long)
- ChronoLocalDateTime localDateTime(TemporalAccessor)
- ChronoPeriod period(int, int, int)
- int prolepticYear(Era, int)
- ValueRange range(ChronoField)
- HijrahDate resolveDate(Map, ResolverStyle)
- String toString()
- ChronoZonedDateTime zonedDateTime(TemporalAccessor)
- ChronoZonedDateTime zonedDateTime(Instant, ZoneId)
HijrahDate
edit- static HijrahDate from(TemporalAccessor)
- static HijrahDate of(int, int, int)
- Temporal adjustInto(Temporal)
- ChronoLocalDateTime atTime(LocalTime)
- int compareTo(ChronoLocalDate)
- boolean equals(Object)
- String format(DateTimeFormatter)
- int get(TemporalField)
- HijrahChronology getChronology()
- HijrahEra getEra()
- long getLong(TemporalField)
- int hashCode()
- boolean isAfter(ChronoLocalDate)
- boolean isBefore(ChronoLocalDate)
- boolean isEqual(ChronoLocalDate)
- boolean isLeapYear()
- boolean isSupported(TemporalField)
- int lengthOfMonth()
- int lengthOfYear()
- HijrahDate minus(TemporalAmount)
- HijrahDate minus(long, TemporalUnit)
- HijrahDate plus(TemporalAmount)
- HijrahDate plus(long, TemporalUnit)
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- long toEpochDay()
- String toString()
- ChronoPeriod until(ChronoLocalDate)
- long until(Temporal, TemporalUnit)
- HijrahDate with(TemporalAdjuster)
- HijrahDate with(TemporalField, long)
- HijrahDate withVariant(HijrahChronology)
HijrahEra
edit- static HijrahEra AH
- static HijrahEra of(int)
- static HijrahEra valueOf(String)
- static HijrahEra[] values()
- Temporal adjustInto(Temporal)
- int compareTo(Enum)
- boolean equals(Object)
- int get(TemporalField)
- String getDisplayName(TextStyle, Locale)
- long getLong(TemporalField)
- int getValue()
- int hashCode()
- boolean isSupported(TemporalField)
- String name()
- int ordinal()
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- String toString()
IsoChronology
edit- static IsoChronology INSTANCE
- int compareTo(Chronology)
- LocalDate date(TemporalAccessor)
- LocalDate date(int, int, int)
- LocalDate date(Era, int, int, int)
- LocalDate dateEpochDay(long)
- LocalDate dateYearDay(int, int)
- LocalDate dateYearDay(Era, int, int)
- boolean equals(Object)
- IsoEra eraOf(int)
- List eras()
- String getCalendarType()
- String getDisplayName(TextStyle, Locale)
- String getId()
- int hashCode()
- boolean isLeapYear(long)
- LocalDateTime localDateTime(TemporalAccessor)
- Period period(int, int, int)
- int prolepticYear(Era, int)
- ValueRange range(ChronoField)
- LocalDate resolveDate(Map, ResolverStyle)
- String toString()
- ZonedDateTime zonedDateTime(TemporalAccessor)
- ZonedDateTime zonedDateTime(Instant, ZoneId)
IsoEra
edit- static IsoEra BCE
- static IsoEra CE
- static IsoEra of(int)
- static IsoEra valueOf(String)
- static IsoEra[] values()
- Temporal adjustInto(Temporal)
- int compareTo(Enum)
- boolean equals(Object)
- int get(TemporalField)
- String getDisplayName(TextStyle, Locale)
- long getLong(TemporalField)
- int getValue()
- int hashCode()
- boolean isSupported(TemporalField)
- String name()
- int ordinal()
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- String toString()
JapaneseChronology
edit- static JapaneseChronology INSTANCE
- int compareTo(Chronology)
- JapaneseDate date(TemporalAccessor)
- JapaneseDate date(int, int, int)
- JapaneseDate date(Era, int, int, int)
- JapaneseDate dateEpochDay(long)
- JapaneseDate dateYearDay(int, int)
- JapaneseDate dateYearDay(Era, int, int)
- boolean equals(Object)
- JapaneseEra eraOf(int)
- List eras()
- String getCalendarType()
- String getDisplayName(TextStyle, Locale)
- String getId()
- int hashCode()
- boolean isLeapYear(long)
- ChronoLocalDateTime localDateTime(TemporalAccessor)
- ChronoPeriod period(int, int, int)
- int prolepticYear(Era, int)
- ValueRange range(ChronoField)
- JapaneseDate resolveDate(Map, ResolverStyle)
- String toString()
- ChronoZonedDateTime zonedDateTime(TemporalAccessor)
- ChronoZonedDateTime zonedDateTime(Instant, ZoneId)
JapaneseDate
edit- static JapaneseDate from(TemporalAccessor)
- static JapaneseDate of(int, int, int)
- Temporal adjustInto(Temporal)
- ChronoLocalDateTime atTime(LocalTime)
- int compareTo(ChronoLocalDate)
- boolean equals(Object)
- String format(DateTimeFormatter)
- int get(TemporalField)
- JapaneseChronology getChronology()
- JapaneseEra getEra()
- long getLong(TemporalField)
- int hashCode()
- boolean isAfter(ChronoLocalDate)
- boolean isBefore(ChronoLocalDate)
- boolean isEqual(ChronoLocalDate)
- boolean isLeapYear()
- boolean isSupported(TemporalField)
- int lengthOfMonth()
- int lengthOfYear()
- JapaneseDate minus(TemporalAmount)
- JapaneseDate minus(long, TemporalUnit)
- JapaneseDate plus(TemporalAmount)
- JapaneseDate plus(long, TemporalUnit)
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- long toEpochDay()
- String toString()
- ChronoPeriod until(ChronoLocalDate)
- long until(Temporal, TemporalUnit)
- JapaneseDate with(TemporalAdjuster)
- JapaneseDate with(TemporalField, long)
JapaneseEra
edit- static JapaneseEra HEISEI
- static JapaneseEra MEIJI
- static JapaneseEra SHOWA
- static JapaneseEra TAISHO
- static JapaneseEra of(int)
- static JapaneseEra valueOf(String)
- static JapaneseEra[] values()
- Temporal adjustInto(Temporal)
- boolean equals(Object)
- int get(TemporalField)
- String getDisplayName(TextStyle, Locale)
- long getLong(TemporalField)
- int getValue()
- int hashCode()
- boolean isSupported(TemporalField)
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- String toString()
MinguoChronology
edit- static MinguoChronology INSTANCE
- int compareTo(Chronology)
- MinguoDate date(TemporalAccessor)
- MinguoDate date(int, int, int)
- MinguoDate date(Era, int, int, int)
- MinguoDate dateEpochDay(long)
- MinguoDate dateYearDay(int, int)
- MinguoDate dateYearDay(Era, int, int)
- boolean equals(Object)
- MinguoEra eraOf(int)
- List eras()
- String getCalendarType()
- String getDisplayName(TextStyle, Locale)
- String getId()
- int hashCode()
- boolean isLeapYear(long)
- ChronoLocalDateTime localDateTime(TemporalAccessor)
- ChronoPeriod period(int, int, int)
- int prolepticYear(Era, int)
- ValueRange range(ChronoField)
- MinguoDate resolveDate(Map, ResolverStyle)
- String toString()
- ChronoZonedDateTime zonedDateTime(TemporalAccessor)
- ChronoZonedDateTime zonedDateTime(Instant, ZoneId)
MinguoDate
edit- static MinguoDate from(TemporalAccessor)
- static MinguoDate of(int, int, int)
- Temporal adjustInto(Temporal)
- ChronoLocalDateTime atTime(LocalTime)
- int compareTo(ChronoLocalDate)
- boolean equals(Object)
- String format(DateTimeFormatter)
- int get(TemporalField)
- MinguoChronology getChronology()
- MinguoEra getEra()
- long getLong(TemporalField)
- int hashCode()
- boolean isAfter(ChronoLocalDate)
- boolean isBefore(ChronoLocalDate)
- boolean isEqual(ChronoLocalDate)
- boolean isLeapYear()
- boolean isSupported(TemporalField)
- int lengthOfMonth()
- int lengthOfYear()
- MinguoDate minus(TemporalAmount)
- MinguoDate minus(long, TemporalUnit)
- MinguoDate plus(TemporalAmount)
- MinguoDate plus(long, TemporalUnit)
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- long toEpochDay()
- String toString()
- ChronoPeriod until(ChronoLocalDate)
- long until(Temporal, TemporalUnit)
- MinguoDate with(TemporalAdjuster)
- MinguoDate with(TemporalField, long)
MinguoEra
edit- static MinguoEra BEFORE_ROC
- static MinguoEra ROC
- static MinguoEra of(int)
- static MinguoEra valueOf(String)
- static MinguoEra[] values()
- Temporal adjustInto(Temporal)
- int compareTo(Enum)
- boolean equals(Object)
- int get(TemporalField)
- String getDisplayName(TextStyle, Locale)
- long getLong(TemporalField)
- int getValue()
- int hashCode()
- boolean isSupported(TemporalField)
- String name()
- int ordinal()
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- String toString()
ThaiBuddhistChronology
edit- static ThaiBuddhistChronology INSTANCE
- int compareTo(Chronology)
- ThaiBuddhistDate date(TemporalAccessor)
- ThaiBuddhistDate date(int, int, int)
- ThaiBuddhistDate date(Era, int, int, int)
- ThaiBuddhistDate dateEpochDay(long)
- ThaiBuddhistDate dateYearDay(int, int)
- ThaiBuddhistDate dateYearDay(Era, int, int)
- boolean equals(Object)
- ThaiBuddhistEra eraOf(int)
- List eras()
- String getCalendarType()
- String getDisplayName(TextStyle, Locale)
- String getId()
- int hashCode()
- boolean isLeapYear(long)
- ChronoLocalDateTime localDateTime(TemporalAccessor)
- ChronoPeriod period(int, int, int)
- int prolepticYear(Era, int)
- ValueRange range(ChronoField)
- ThaiBuddhistDate resolveDate(Map, ResolverStyle)
- String toString()
- ChronoZonedDateTime zonedDateTime(TemporalAccessor)
- ChronoZonedDateTime zonedDateTime(Instant, ZoneId)
ThaiBuddhistDate
edit- static ThaiBuddhistDate from(TemporalAccessor)
- static ThaiBuddhistDate of(int, int, int)
- Temporal adjustInto(Temporal)
- ChronoLocalDateTime atTime(LocalTime)
- int compareTo(ChronoLocalDate)
- boolean equals(Object)
- String format(DateTimeFormatter)
- int get(TemporalField)
- ThaiBuddhistChronology getChronology()
- ThaiBuddhistEra getEra()
- long getLong(TemporalField)
- int hashCode()
- boolean isAfter(ChronoLocalDate)
- boolean isBefore(ChronoLocalDate)
- boolean isEqual(ChronoLocalDate)
- boolean isLeapYear()
- boolean isSupported(TemporalField)
- int lengthOfMonth()
- int lengthOfYear()
- ThaiBuddhistDate minus(TemporalAmount)
- ThaiBuddhistDate minus(long, TemporalUnit)
- ThaiBuddhistDate plus(TemporalAmount)
- ThaiBuddhistDate plus(long, TemporalUnit)
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- long toEpochDay()
- String toString()
- ChronoPeriod until(ChronoLocalDate)
- long until(Temporal, TemporalUnit)
- ThaiBuddhistDate with(TemporalAdjuster)
- ThaiBuddhistDate with(TemporalField, long)
ThaiBuddhistEra
edit- static ThaiBuddhistEra BE
- static ThaiBuddhistEra BEFORE_BE
- static ThaiBuddhistEra of(int)
- static ThaiBuddhistEra valueOf(String)
- static ThaiBuddhistEra[] values()
- Temporal adjustInto(Temporal)
- int compareTo(Enum)
- boolean equals(Object)
- int get(TemporalField)
- String getDisplayName(TextStyle, Locale)
- long getLong(TemporalField)
- int getValue()
- int hashCode()
- boolean isSupported(TemporalField)
- String name()
- int ordinal()
- def query(TemporalQuery)
- ValueRange range(TemporalField)
- String toString()