Add java.time.InstantSource

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 17
    • Affects Version/s: None
    • Component/s: 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

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

              Created:
              Updated:
              Resolved: