fun asDuration(): Duration
Convert the interval into a Duration of the same length.
UnsupportedOperationException - if the interval isn't bounded
UnsupportedOperationException