Local Date
The date part of LocalDateTime.
This class represents dates without a reference to a particular time zone. As such, these objects may denote different spans of time in different time zones: for someone in Berlin, 2020-08-30
started and ended at different moments from those for someone in Tokyo.
The arithmetic on LocalDate values is defined independently of the time zone (so 2020-08-30
plus one day is 2020-08-31
everywhere): see various LocalDate.plus and LocalDate.minus functions, as well as LocalDate.periodUntil and various other *until functions.
Constructors
Properties
Functions
Combines this date's components with the specified LocalTime components into a LocalDateTime value.
Combines this date's components with the specified time components into a LocalDateTime value.
Compares this
date with the other date. Returns zero if this date represent the same day as the other (i.e. equal to other), a negative number if this date is earlier than the other, and a positive number if this date is later than the other.
Formats this value using the given format. Equivalent to calling DateTimeFormat.format on format with this
.
Returns a date that is the result of subtracting components of DatePeriod from this date. The components are subtracted in the order from the largest units to the smallest, i.e. from years to days.
Returns a DatePeriod representing the difference between other and this
dates.
Returns the number of whole months between two dates.
Returns a date that is the result of adding components of DatePeriod to this date. The components are added in the order from the largest units to the smallest, i.e. from years to days.
Returns the number of days since the epoch day 1970-01-01
.
Converts this kotlinx.datetime.LocalDate value to a java.time.LocalDate value.
Converts the given LocalDate to NSDateComponents.
Returns the number of whole years between two dates.