Skip to content

//core/io.islandtime.ranges/lengthInMonths

lengthInMonths

common

val DateRange.lengthInMonths: Months

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

Throws

UnsupportedOperationException if the range isn't bounded

common

val DateTimeInterval.lengthInMonths: Months

val OffsetDateTimeInterval.lengthInMonths: Months

val ZonedDateTimeInterval.lengthInMonths: Months

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

Throws

UnsupportedOperationException if the interval isn't bounded