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

Add java.time.InstantSource

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 17
    • None
    • core-libs
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: