asPeriod

Converts this interval into a Period of the same length.

fun asPeriod(): Period