-
Sub-task
-
Resolution: Delivered
-
P4
-
23
-
generic
-
generic
A new method has been added to the `java.time.Instant` class to obtain the `Duration` until the specified `Instant`. The new method. `Instant.until(Instant)`. produces the same duration as `Duration.between(Temporal, Temporal)` but is easier for users to discover. Also, this new method is more convenient than the method `Instant.until(Temporal, TemporalUnit)` in that the new method directly returns a `Duration` without a unit conversion.