fun asDuration(): Duration
Get the Duration between the start and end date-time, assuming they're in the same time zone. In general, it's more appropriate to calculate duration using Instant or ZonedDateTime as any daylight savings rules won't be taken into account when working with DateTime directly.
UnsupportedOperationException - if the interval isn't bounded