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

Add java.time.InstantSource

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • None
    • core-libs
    • b26

      `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

        There are no Sub-Tasks for this issue.

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

              Created:
              Updated:
              Resolved: