toDateTimePeriod

Constructs a DateTimePeriod from a Duration.

If the duration value is too big to be represented as a Long number of nanoseconds, the result will be Long.MAX_VALUE nanoseconds.