Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.
public interface ChronoLocalDate
ExtendsComparable<ChronoLocalDate>, Temporal, TemporalAccessor
Known subtypesLocalDate
A date of a calendar. The ISO calendar’s
LocalDate is the one there is.Methods
public abstract long toEpochDay() | The days since 1970-01-01. |
public abstract boolean isLeapYear() | Whether the year of this date is a leap year. |
public abstract int lengthOfMonth() | The days in the month of this date. |
public default int lengthOfYear() | The days in the year of this date. |
public default boolean isAfter(ChronoLocalDate other) | Whether this date comes after other. |
public default boolean isBefore(ChronoLocalDate other) | Whether this date comes before other. |
public default boolean isEqual(ChronoLocalDate other) | Whether this date is the same day as other. |
Inherited methods
From Comparable
Method details
toEpochDay
public abstract long toEpochDay()The days since 1970-01-01.
isLeapYear
public abstract boolean isLeapYear()Whether the year of this date is a leap year.
lengthOfMonth
public abstract int lengthOfMonth()The days in the month of this date.
lengthOfYear
public default int lengthOfYear()The days in the year of this date.
isAfter
public default boolean isAfter(ChronoLocalDate other)Whether this date comes after
other.isBefore
public default boolean isBefore(ChronoLocalDate other)Whether this date comes before
other.isEqual
public default boolean isEqual(ChronoLocalDate other)Whether this date is the same day as
other.