//core/io.islandtime.ranges/lengthInYears
lengthInYears¶
common
val DateRange.lengthInYears: Years
The number of whole years between the start and end of this range.
Throws¶
kotlin.UnsupportedOperationException | if the range isn't bounded |
common
val DateTimeInterval.lengthInYears: Years
val OffsetDateTimeInterval.lengthInYears: Years
val ZonedDateTimeInterval.lengthInYears: Years
The number of whole years between the start and end of this interval.
Throws¶
kotlin.UnsupportedOperationException | if the interval isn't bounded |