core / io.islandtime.ranges / weeksBetween

weeksBetween

(iosArm64, iosX64, jvm, macosX64) fun weeksBetween(start: Date, endExclusive: Date): LongWeeks

Get the number of whole weeks between two dates.

(iosArm64, iosX64, jvm, macosX64) fun weeksBetween(start: DateTime, endExclusive: DateTime): LongWeeks

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

(iosArm64, iosX64, jvm, macosX64) fun weeksBetween(start: OffsetDateTime, endExclusive: OffsetDateTime): LongWeeks

Get the number whole weeks between two date-times, ignoring the offsets.

(iosArm64, iosX64, jvm, macosX64) fun weeksBetween(start: ZonedDateTime, endExclusive: ZonedDateTime): LongWeeks

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