Home
last modified time | relevance | path

Searched refs:dur (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/main/java/java/time/
DInstant.java749 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()
DDuration.java1355 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()
DLocalTime.java974 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/
DTCKDuration.java2717 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 …]
DTCKOffsetDateTime.java921 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);