/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoUnit.java | 59 import static java.time.temporal.ChronoUnit.CENTURIES; 104 {CENTURIES, true, false, true}, in data_chronoUnit() 135 {CENTURIES, LocalDate.of(2000, 1, 10), true, 1, LocalDate.of(2100, 1, 10)}, in data_unitAndTemporal() 150 {CENTURIES, LocalTime.of(1, 2, 3, 400), false, 1, null}, in data_unitAndTemporal()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKChronoUnitSerialization.java | 59 import static java.time.temporal.ChronoUnit.CENTURIES; 99 {CENTURIES}, in data_chronoUnit()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKYearMonth.java | 67 import static java.time.temporal.ChronoUnit.CENTURIES; 451 assertEquals(TEST_2008_06.isSupported(ChronoUnit.CENTURIES), true); in test_isSupported_TemporalUnit() 763 {YearMonth.of(5, 10), 1, ChronoUnit.CENTURIES, YearMonth.of(105, 10), null}, in data_plus_long_TemporalUnit() 978 {YearMonth.of(5, 10), 1, ChronoUnit.CENTURIES, YearMonth.of(-95, 10), null}, in data_minus_long_TemporalUnit() 1216 {ym(2000, 5), ym(-1, 5), CENTURIES, -20}, in data_periodUntilUnit() 1217 {ym(2000, 5), ym(0, 4), CENTURIES, -20}, in data_periodUntilUnit() 1218 {ym(2000, 5), ym(0, 5), CENTURIES, -20}, in data_periodUntilUnit() 1219 {ym(2000, 5), ym(0, 6), CENTURIES, -19}, in data_periodUntilUnit() 1220 {ym(2000, 5), ym(1, 5), CENTURIES, -19}, in data_periodUntilUnit() 1221 {ym(2000, 5), ym(1900, 4), CENTURIES, -1}, in data_periodUntilUnit() [all …]
|
D | TCKYear.java | 65 import static java.time.temporal.ChronoUnit.CENTURIES; 386 assertEquals(TEST_2008.isSupported(ChronoUnit.CENTURIES), true); in test_isSupported_TemporalUnit() 587 {Year.of(5), 1, ChronoUnit.CENTURIES, Year.of(105), null}, in data_plus_long_TemporalUnit() 719 {Year.of(105), 1, ChronoUnit.CENTURIES, Year.of(5), null}, in data_minus_long_TemporalUnit() 900 {Year.of(2000), Year.of(-1), CENTURIES, -20}, in data_periodUntilUnit() 901 {Year.of(2000), Year.of(0), CENTURIES, -20}, in data_periodUntilUnit() 902 {Year.of(2000), Year.of(1), CENTURIES, -19}, in data_periodUntilUnit() 903 {Year.of(2000), Year.of(1899), CENTURIES, -1}, in data_periodUntilUnit() 904 {Year.of(2000), Year.of(1900), CENTURIES, -1}, in data_periodUntilUnit() 905 {Year.of(2000), Year.of(1901), CENTURIES, 0}, in data_periodUntilUnit() [all …]
|
D | TCKLocalDate.java | 75 import static java.time.temporal.ChronoUnit.CENTURIES; 660 assertEquals(TEST_2007_07_15.isSupported(ChronoUnit.CENTURIES), true); 1692 {date(2000, 1, 1), date(2000, 1, 1), CENTURIES, 0}, 1721 {date(2000, 1, 15), date(2100, 1, 14), CENTURIES, 0}, 1722 {date(2000, 1, 15), date(2100, 1, 15), CENTURIES, 1},
|
D | TCKLocalDateTime.java | 90 import static java.time.temporal.ChronoUnit.CENTURIES; 972 assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoUnit.CENTURIES), true); 2769 {dtNoon(2000, 1, 1), dtNoon(2000, 1, 1), CENTURIES, 0}, 2798 {dtNoon(2000, 1, 15), dtNoon(2100, 1, 14), CENTURIES, 0}, 2799 {dtNoon(2000, 1, 15), dtNoon(2100, 1, 15), CENTURIES, 1},
|
D | TCKPeriod.java | 1169 {ChronoUnit.CENTURIES}, in data_badTemporalUnit()
|
D | TCKOffsetTime.java | 572 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoUnit.CENTURIES), false);
|
D | TCKDuration.java | 2719 {0, ChronoUnit.CENTURIES}, in provider_factory_of_badTemporalUnit()
|
D | TCKOffsetDateTime.java | 589 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoUnit.CENTURIES), true);
|
D | TCKLocalTime.java | 614 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoUnit.CENTURIES), false); in test_isSupported_TemporalUnit()
|
D | TCKZonedDateTime.java | 915 assertEquals(TEST_DATE_TIME.isSupported(ChronoUnit.CENTURIES), true);
|
/libcore/ojluni/src/main/java/java/time/ |
D | Year.java | 67 import static java.time.temporal.ChronoUnit.CENTURIES; 398 … return unit == YEARS || unit == DECADES || unit == CENTURIES || unit == MILLENNIA || unit == ERAS; in isSupported() 707 case CENTURIES: return plusYears(Math.multiplyExact(amountToAdd, 100)); in plus() 914 case CENTURIES: return yearsUntil / 100; in until()
|
D | YearMonth.java | 69 import static java.time.temporal.ChronoUnit.CENTURIES; 386 …return unit == MONTHS || unit == YEARS || unit == DECADES || unit == CENTURIES || unit == MILLENNI… in isSupported() 805 case CENTURIES: return plusYears(Math.multiplyExact(amountToAdd, 100)); in plus() 1047 case CENTURIES: return monthsUntil / 1200; in until()
|
D | LocalDate.java | 1237 case CENTURIES: return plusYears(Math.multiplyExact(amountToAdd, 100)); in plus() 1604 case CENTURIES: return monthsUntil(end) / 1200; in until()
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | InstantTest.java | 48 assertEquals(false, Instant.EPOCH.isSupported(ChronoUnit.CENTURIES)); in test_isSupported_TemporalUnit()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoUnit.java | 165 CENTURIES("Centuries", Duration.ofSeconds(31556952L * 100L)), enumConstant
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateImpl.java | 207 case CENTURIES: return plusYears(Math.multiplyExact(amountToAdd, 100)); in plus() 386 case CENTURIES: return monthsUntil(end) / 1200; in until()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | CopticDate.java | 268 case CENTURIES: return plusYears(Math.multiplyExact(amountToAdd, 100)); in plus()
|