core / io.islandtime.ranges / OffsetDateTimeInterval / lengthInMonths

lengthInMonths

(iosArm64, iosX64, jvm, macosX64) val lengthInMonths: IntMonths

Get the number of months between the start and end of the interval. A month is considered to have passed if the day of the end month is greater than or equal to the day of the start month.

Exceptions

UnsupportedOperationException - if the interval isn't bounded