timeUntil method
Returns the result of subtracting this from a zoned date and time, resulting in the elapsed duration between the two instants represented by the values.
other
: The zoned date and time to subtract this from.
Returns: The elapsed duration from other
to this value.
Implementation
Time timeUntil(ZonedDateTime other) => toInstant().timeUntil(other.toInstant());