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

Add java.time.Clock.tickMillis(ZoneId zone) method

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b94

      Description

      With the increased resolution brought up by JDK-8068730, it would feel more natural to add a new java.time.Clock.tickMillis(ZoneId zone) method to java.time.Clock - which would return a clock with only milliseconds resolution.

      Quoting from Stephen Colebourne:

      <<
      I do believe that this change means that a new method should be added
      to Clock however:

          public static Clock tickMillis(ZoneId zone) {
              return new TickClock(system(zone), NANOS_PER_MILLI);
          }

      While this can be achieved without a new method, the API would feel
      slightly strange without it now better-than-milli clocks exist. I
      recommend raising a separate RFE to track this.
      >>

        Issue Links

          Activity

          dfuchs Daniel Fuchs created issue -
          dfuchs Daniel Fuchs made changes -
          Field Original Value New Value
          Link This issue relates to JDK-8068730 [ JDK-8068730 ]
          rriggs Roger Riggs made changes -
          Fix Version/s 9 [ 14949 ]
          rriggs Roger Riggs made changes -
          Assignee Roger Riggs [ rriggs ]
          ntv Nadeesh Tv (Inactive) made changes -
          Assignee Roger Riggs [ rriggs ] Nadeesh Tv [ ntv ]
          ntv Nadeesh Tv (Inactive) made changes -
          Status New [ 10000 ] Open [ 1 ]
          ntv Nadeesh Tv (Inactive) made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Understanding Fix Understood [ 10001 ]
          rriggs Roger Riggs made changes -
          Summary Add a java.time.Clock.tickMillis(ZoneId zone) method to java.time.Clock Add a java.time.Clock.tickMillis(ZoneId zone) method
          rriggs Roger Riggs made changes -
          Summary Add a java.time.Clock.tickMillis(ZoneId zone) method Add java.time.Clock.tickMillis(ZoneId zone) method
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/b38edf61b64c
          User: rriggs
          Date: 2015-11-17 16:07:03 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/b38edf61b64c User: rriggs Date: 2015-11-17 16:07:03 +0000
          hgupdate HG Updates made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolved In Build team [ 17324 ]
          Understanding Fix Understood [ 10001 ]
          Resolution Fixed [ 1 ]
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/b38edf61b64c
          User: lana
          Date: 2015-11-25 21:18:22 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/b38edf61b64c User: lana Date: 2015-11-25 21:18:22 +0000
          hgupdate HG Updates made changes -
          Resolved In Build team [ 17324 ] master [ 18256 ]
          hgupdate HG Updates made changes -
          Resolved In Build master [ 18256 ] b94 [ 17556 ]
          iris Iris Clark made changes -
          Labels jsr379-annex2-tbd
          iris Iris Clark made changes -
          Labels jsr379-annex2-tbd jsr379-annex1
          darcy Joe Darcy made changes -
          Link This issue csr of CCC-8071919 [ CCC-8071919 ]

            People

            • Assignee:
              ntv Nadeesh Tv (Inactive)
              Reporter:
              dfuchs Daniel Fuchs
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: