asPeriod

fun asPeriod(): Period

Converts this interval into a Period of the same length.

Throws

if the interval isn't bounded