Searched refs:toSeconds (Results 1 – 5 of 5) sorted by relevance
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | TimeUnit.java | 81 public long toSeconds(long d) { return d/(C3/C0); } in toSeconds() method 96 public long toSeconds(long d) { return d/(C3/C1); } in toSeconds() method 111 public long toSeconds(long d) { return d/(C3/C2); } in toSeconds() method 126 public long toSeconds(long d) { return d; } in toSeconds() method 130 public long convert(long d, TimeUnit u) { return u.toSeconds(d); } in convert() 142 public long toSeconds(long d) { return x(d, C4/C3, MAX/(C4/C3)); } in toSeconds() method 158 public long toSeconds(long d) { return x(d, C5/C3, MAX/(C5/C3)); } in toSeconds() method 174 public long toSeconds(long d) { return x(d, C6/C3, MAX/(C6/C3)); } in toSeconds() method 274 public long toSeconds(long duration) { in toSeconds() method in TimeUnit
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | TimeUnitTest.java | 214 DAYS.toSeconds(t)); in testToSeconds() 216 HOURS.toSeconds(t)); in testToSeconds() 218 MINUTES.toSeconds(t)); in testToSeconds() 220 SECONDS.toSeconds(t)); in testToSeconds() 222 MILLISECONDS.toSeconds(t*1000L)); in testToSeconds() 224 MICROSECONDS.toSeconds(t*1000000L)); in testToSeconds() 226 NANOSECONDS.toSeconds(t*1000000000L)); in testToSeconds() 436 assertEquals(z * ratio, x.toSeconds(z)); in testToSecondsSaturate() 438 assertEquals(Long.MAX_VALUE, x.toSeconds(max + 1)); in testToSecondsSaturate() 439 assertEquals(Long.MIN_VALUE, x.toSeconds(-max - 1)); in testToSecondsSaturate() [all …]
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
D | FileTime.java | 321 - TimeUnit.DAYS.toSeconds(days)); in toExcessNanos() 416 secs = unit.toSeconds(value); in toString()
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | Duration.java | 258 private java.math.BigDecimal toSeconds() { in toSeconds() method in Duration
|
/libcore/ojluni/src/main/java/java/time/ |
D | Duration.java | 1181 public long toSeconds() { in toSeconds() method in Duration
|