asDuration

fun asDuration(): Duration

Converts this interval into a Duration of the same length.

Throws

if the interval isn't bounded