Release Note: Support for Duration Until Another Instant

XMLWordPrintable

    • 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.

            Assignee:
            Naoto Sato
            Reporter:
            Naoto Sato
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: