test/java/time/tck/java/time/TCKClock.java

Print this page

        

*** 81,90 **** --- 81,94 ---- @Override public long millis() { return millis; } @Override + public Instant instant() { + return Instant.ofEpochMilli(millis()); + } + @Override public ZoneId getZone() { return zone; } @Override public Clock withZone(ZoneId timeZone) {