core / io.islandtime.ranges / DateTimeInterval / asPeriod
asPeriod
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun asPeriod(): Period
Convert the interval into a Period of the same length.
Exceptions
UnsupportedOperationException - if the interval isn't bounded