core / io.islandtime.ranges / TimePointInterval / asDuration

asDuration

(iosArm64, iosX64, jvm, macosX64) fun asDuration(): Duration

Convert the interval into a Duration of the same length.

Exceptions

UnsupportedOperationException - if the interval isn't bounded