core / io.islandtime.ranges / ZonedDateTimeInterval / lengthInMonths

lengthInMonths

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) 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