JDK-8071919 : Add java.time.Clock.tickMillis(ZoneId zone) method
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.time
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-01-29
  • Updated: 2017-05-17
  • Resolved: 2015-11-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b94Fixed
Related Reports
Relates :  
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.
>>