Skip to content

//core/io.islandtime.ranges/lengthInCenturies

lengthInCenturies

common

val DateRange.lengthInCenturies: Centuries

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

Throws

UnsupportedOperationException if the range isn't bounded

common

val DateTimeInterval.lengthInCenturies: Centuries

val OffsetDateTimeInterval.lengthInCenturies: Centuries

val ZonedDateTimeInterval.lengthInCenturies: Centuries

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

Throws

UnsupportedOperationException if the interval isn't bounded