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