/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKChronoUnitSerialization.java | 67 import static java.time.temporal.ChronoUnit.MILLENNIA; 98 {MILLENNIA}, in data_chronoUnit()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Year.java | 70 import static java.time.temporal.ChronoUnit.MILLENNIA; 398 … return unit == YEARS || unit == DECADES || unit == CENTURIES || unit == MILLENNIA || unit == ERAS; in isSupported() 708 case MILLENNIA: return plusYears(Math.multiplyExact(amountToAdd, 1000)); in plus() 915 case MILLENNIA: return yearsUntil / 1000; in until()
|
D | YearMonth.java | 72 import static java.time.temporal.ChronoUnit.MILLENNIA; 386 …NTHS || unit == YEARS || unit == DECADES || unit == CENTURIES || unit == MILLENNIA || unit == ERAS; in isSupported() 806 case MILLENNIA: return plusYears(Math.multiplyExact(amountToAdd, 1000)); in plus() 1048 case MILLENNIA: return monthsUntil / 12000; in until()
|
D | LocalDate.java | 1238 case MILLENNIA: return plusYears(Math.multiplyExact(amountToAdd, 1000)); in plus() 1605 case MILLENNIA: return monthsUntil(end) / 12000; in until()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKYearMonth.java | 71 import static java.time.temporal.ChronoUnit.MILLENNIA; 452 assertEquals(TEST_2008_06.isSupported(ChronoUnit.MILLENNIA), true); in test_isSupported_TemporalUnit() 1231 {ym(2000, 5), ym(-1, 5), MILLENNIA, -2}, in data_periodUntilUnit() 1232 {ym(2000, 5), ym(0, 4), MILLENNIA, -2}, in data_periodUntilUnit() 1233 {ym(2000, 5), ym(0, 5), MILLENNIA, -2}, in data_periodUntilUnit() 1234 {ym(2000, 5), ym(0, 6), MILLENNIA, -1}, in data_periodUntilUnit() 1235 {ym(2000, 5), ym(1, 5), MILLENNIA, -1}, in data_periodUntilUnit() 1236 {ym(2000, 5), ym(1000, 4), MILLENNIA, -1}, in data_periodUntilUnit() 1237 {ym(2000, 5), ym(1000, 5), MILLENNIA, -1}, in data_periodUntilUnit() 1238 {ym(2000, 5), ym(1000, 6), MILLENNIA, 0}, in data_periodUntilUnit() [all …]
|
D | TCKYear.java | 68 import static java.time.temporal.ChronoUnit.MILLENNIA; 387 assertEquals(TEST_2008.isSupported(ChronoUnit.MILLENNIA), true); in test_isSupported_TemporalUnit() 911 {Year.of(2000), Year.of(-1), MILLENNIA, -2}, in data_periodUntilUnit() 912 {Year.of(2000), Year.of(0), MILLENNIA, -2}, in data_periodUntilUnit() 913 {Year.of(2000), Year.of(1), MILLENNIA, -1}, in data_periodUntilUnit() 914 {Year.of(2000), Year.of(999), MILLENNIA, -1}, in data_periodUntilUnit() 915 {Year.of(2000), Year.of(1000), MILLENNIA, -1}, in data_periodUntilUnit() 916 {Year.of(2000), Year.of(1001), MILLENNIA, 0}, in data_periodUntilUnit() 917 {Year.of(2000), Year.of(2000), MILLENNIA, 0}, in data_periodUntilUnit() 918 {Year.of(2000), Year.of(2999), MILLENNIA, 0}, in data_periodUntilUnit() [all …]
|
D | TCKLocalDate.java | 79 import static java.time.temporal.ChronoUnit.MILLENNIA; 661 assertEquals(TEST_2007_07_15.isSupported(ChronoUnit.MILLENNIA), true); 1693 {date(2000, 1, 1), date(2000, 1, 1), MILLENNIA, 0}, 1724 {date(2000, 1, 15), date(3000, 1, 14), MILLENNIA, 0}, 1725 {date(2000, 1, 15), date(3000, 1, 15), MILLENNIA, 1},
|
D | TCKLocalDateTime.java | 96 import static java.time.temporal.ChronoUnit.MILLENNIA; 973 assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoUnit.MILLENNIA), true); 2770 {dtNoon(2000, 1, 1), dtNoon(2000, 1, 1), MILLENNIA, 0}, 2801 {dtNoon(2000, 1, 15), dtNoon(3000, 1, 14), MILLENNIA, 0}, 2802 {dtNoon(2000, 1, 15), dtNoon(3000, 1, 15), MILLENNIA, 1},
|
D | TCKPeriod.java | 1170 {ChronoUnit.MILLENNIA}, in data_badTemporalUnit()
|
D | TCKOffsetTime.java | 573 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoUnit.MILLENNIA), false);
|
D | TCKDuration.java | 2720 {0, ChronoUnit.MILLENNIA}, in provider_factory_of_badTemporalUnit()
|
D | TCKOffsetDateTime.java | 590 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoUnit.MILLENNIA), true);
|
D | TCKLocalTime.java | 615 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoUnit.MILLENNIA), false); in test_isSupported_TemporalUnit()
|
D | TCKZonedDateTime.java | 916 assertEquals(TEST_DATE_TIME.isSupported(ChronoUnit.MILLENNIA), true);
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoUnit.java | 67 import static java.time.temporal.ChronoUnit.MILLENNIA; 103 {MILLENNIA, true, false, true}, in data_chronoUnit()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoUnit.java | 173 MILLENNIA("Millennia", Duration.ofSeconds(31556952L * 1000L)), enumConstant
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | InstantTest.java | 49 assertEquals(false, Instant.EPOCH.isSupported(ChronoUnit.MILLENNIA)); in test_isSupported_TemporalUnit()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateImpl.java | 208 case MILLENNIA: return plusYears(Math.multiplyExact(amountToAdd, 1000)); in plus() 387 case MILLENNIA: return monthsUntil(end) / 12000; in until()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | CopticDate.java | 269 case MILLENNIA: return plusYears(Math.multiplyExact(amountToAdd, 1000)); in plus()
|