Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8331202 Support for Duration until another Instant
  3. JDK-8331338

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.

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

              Created:
              Updated:
              Resolved: