core / io.islandtime.ranges / DateRange / asPeriod
asPeriod
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun asPeriod(): Period
Convert a range of dates into a period containing each day in the range. As a range is inclusive, if the start
and end date are the same, the resulting period will contain one day.
Exceptions
UnsupportedOperationException - if the range isn't bounded