difference static method
Subtracts one offset date and time from another, returning an elapsed duration. Equivalent to: end - start
.
end
: The offset date and time value to subtract from; if this is later thanstart
then the result will be positive.start
: The offset date and time to subtract fromend
.
Returns: The elapsed duration from start
to end
.
Implementation
static Time difference(OffsetDateTime end, OffsetDateTime start) => end.timeSince(start);