daysBetween

Gets the number of days between two dates.

fun daysBetween(start: Date, endExclusive: Date): LongDays

Gets the number whole days between two date-times, assuming they're in the same time zone.

fun daysBetween(start: DateTime, endExclusive: DateTime): LongDays

Gets the number whole days between two date-times, adjusting the offset of endExclusive if necessary to match the starting date-time.

fun daysBetween(start: OffsetDateTime, endExclusive: OffsetDateTime): LongDays

Gets the number of 24-hour days between two time points.

fun <T1, T2> daysBetween(start: TimePoint<T1>, endExclusive: TimePoint<T2>): LongDays

Gets the number of whole days between two zoned date-times, adjusting the time zone of endExclusive if necessary to match the starting date-time.

fun daysBetween(start: ZonedDateTime, endExclusive: ZonedDateTime): LongDays