timeUntil method

Time timeUntil(
  1. OffsetDateTime other
)

Returns the result of subtracting another offset date and time from this one, resulting in the elapsed duration between the two instants represented in the values.

  • other: The offset date and time to subtract from this one.

Returns: The elapsed duration from other to this value.

Implementation

Time timeUntil(OffsetDateTime other) => toInstant().timeUntil(other.toInstant());