core / io.islandtime.ranges / daysBetween

daysBetween

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun daysBetween(start: Date, endExclusive: Date): LongDays

Get the number of days between two dates.

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun daysBetween(start: DateTime, endExclusive: DateTime): LongDays

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

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun daysBetween(start: OffsetDateTime, endExclusive: OffsetDateTime): LongDays

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

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun <T1, T2> daysBetween(start: TimePoint<T1>, endExclusive: TimePoint<T2>): LongDays

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

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun daysBetween(start: ZonedDateTime, endExclusive: ZonedDateTime): LongDays

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