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

Print this page

        

@@ -81,10 +81,14 @@
         @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) {