core / io.islandtime.ranges / DateRange / lengthInDays

lengthInDays

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) val lengthInDays: LongDays

Get the number of days in the range. As a range is inclusive, if the start and end date are the same, the result will be one day.

Exceptions

UnsupportedOperationException - if the range isn't bounded