Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8266846

Add java.time.InstantSource

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 17
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b26

      Description

      `java.time.Clock` is an abstract class representing "now" in java.time. It has two distinct aspects - obtaining the current instant and providing the associated time zone. User feedback and examination of other libraries indicates a desire for an interface focussed only on the task of obtaining the current instant.

      See the linked CSR for the proposed spec.

      The existing `Clock` abstract class would be altered to implement the interface.

      https://mail.openjdk.java.net/pipermail/core-libs-dev/2021-May/077213.html

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              scolebourne Stephen Colebourne
              Reporter:
              scolebourne Stephen Colebourne
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: