durationUntil

Computes the calendar-aware duration between this moment and other.

The result is always non-negative regardless of argument order.

val duration = start.durationUntil(end)
// duration.months, duration.weeks, duration.days, duration.hours, etc.

Return

a DateTimeDuration decomposed into years, months, weeks, days and time.

Parameters

other

the target moment.