Lines Matching refs:unit
74 for (TimeUnit unit: TimeUnit.values()) {
75 for (int i=0; i<100; i++) { to(rand.nextLong(), unit); }
76 to(Long.MIN_VALUE, unit);
77 to(Long.MAX_VALUE, unit);
147 static void to(long v, TimeUnit unit) {
148 FileTime t = FileTime.from(v, unit);
151 long expected = u.convert(v, unit);
158 static void ts(long v, TimeUnit unit, String expected) {
159 String result = FileTime.from(v, unit).toString();
161 System.err.format("FileTime.from(%d, %s).toString() failed\n", v, unit);