core / io.islandtime.ranges / TimePointInterval / asDuration

asDuration

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun asDuration(): Duration

Converts this interval into a Duration of the same length.

Exceptions

UnsupportedOperationException - if the interval isn't bounded