Skip to content

//core/io.islandtime.ranges/lengthInWeeks

lengthInWeeks

common

val DateRange.lengthInWeeks: Weeks

The number of whole weeks between the start and end of this range.

Throws

UnsupportedOperationException if the range isn't bounded

common

val DateTimeInterval.lengthInWeeks: Weeks

val OffsetDateTimeInterval.lengthInWeeks: Weeks

val ZonedDateTimeInterval.lengthInWeeks: Weeks

The number of whole weeks between the start and end of this interval.

Throws

UnsupportedOperationException if the interval isn't bounded