core / io.islandtime.ranges / DateTimeInterval / lengthInYears

lengthInYears

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) val lengthInYears: IntYears

Get the number of whole years in the interval.

Exceptions

UnsupportedOperationException - if the interval isn't bounded