Searched refs:dur (Results 1 – 5 of 5) sorted by relevance
/libcore/ojluni/src/main/java/java/time/ |
D | Instant.java | 749 long dur = unitDur.toNanos(); in truncatedTo() local 750 if ((LocalTime.NANOS_PER_DAY % dur) != 0) { in truncatedTo() 754 long result = Math.floorDiv(nod, dur) * dur; in truncatedTo()
|
D | Duration.java | 1355 long dur = unitDur.toNanos(); in truncatedTo() local 1356 if ((LocalTime.NANOS_PER_DAY % dur) != 0) { in truncatedTo() 1360 long result = (nod / dur) * dur; in truncatedTo()
|
D | LocalTime.java | 974 long dur = unitDur.toNanos(); in truncatedTo() local 975 if ((NANOS_PER_DAY % dur) != 0) { in truncatedTo() 979 return ofNanoOfDay((nod / dur) * dur); in truncatedTo()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKDuration.java | 2717 public void test_toSeconds(Duration dur, long seconds) { in test_toSeconds() argument 2718 assertEquals(dur.toSeconds(), seconds); in test_toSeconds() 2737 public void test_toDaysPart(Duration dur, long days) { in test_toDaysPart() argument 2738 assertEquals(dur.toDaysPart(), days); in test_toDaysPart() 2756 public void test_toHoursPart(Duration dur, int hours) { in test_toHoursPart() argument 2757 assertEquals(dur.toHoursPart(), hours); in test_toHoursPart() 2776 public void test_toMinutesPart(Duration dur, int minutes) { in test_toMinutesPart() argument 2777 assertEquals(dur.toMinutesPart(), minutes); in test_toMinutesPart() 2796 public void test_toSecondsPart(Duration dur, int seconds) { in test_toSecondsPart() argument 2797 assertEquals(dur.toSecondsPart(), seconds); in test_toSecondsPart() [all …]
|
D | TCKOffsetDateTime.java | 921 Duration dur = Duration.ofSeconds(62, 3); 922 OffsetDateTime t = TEST_2008_6_30_11_30_59_000000500.plus(dur); 1032 Duration dur = Duration.ofSeconds(62, 3); 1033 OffsetDateTime t = TEST_2008_6_30_11_30_59_000000500.minus(dur);
|