Home
last modified time | relevance | path

Searched refs:DECADES (Results 1 – 19 of 19) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoUnit.java61 import static java.time.temporal.ChronoUnit.DECADES;
105 {DECADES, true, false, true}, in data_chronoUnit()
136 {DECADES, LocalDate.of(2000, 1, 10), true, 1, LocalDate.of(2010, 1, 10)}, in data_unitAndTemporal()
151 {DECADES, LocalTime.of(1, 2, 3, 400), false, 1, null}, in data_unitAndTemporal()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKChronoUnitSerialization.java61 import static java.time.temporal.ChronoUnit.DECADES;
100 {DECADES}, in data_chronoUnit()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKYearMonth.java69 import static java.time.temporal.ChronoUnit.DECADES;
450 assertEquals(TEST_2008_06.isSupported(ChronoUnit.DECADES), true); in test_isSupported_TemporalUnit()
764 {YearMonth.of(5, 10), 1, ChronoUnit.DECADES, YearMonth.of(15, 10), null}, in data_plus_long_TemporalUnit()
979 {YearMonth.of(5, 10), 1, ChronoUnit.DECADES, YearMonth.of(-5, 10), null}, in data_minus_long_TemporalUnit()
1201 {ym(2000, 5), ym(-1, 5), DECADES, -200}, in data_periodUntilUnit()
1202 {ym(2000, 5), ym(0, 4), DECADES, -200}, in data_periodUntilUnit()
1203 {ym(2000, 5), ym(0, 5), DECADES, -200}, in data_periodUntilUnit()
1204 {ym(2000, 5), ym(0, 6), DECADES, -199}, in data_periodUntilUnit()
1205 {ym(2000, 5), ym(1, 5), DECADES, -199}, in data_periodUntilUnit()
1206 {ym(2000, 5), ym(1990, 4), DECADES, -1}, in data_periodUntilUnit()
[all …]
DTCKYear.java67 import static java.time.temporal.ChronoUnit.DECADES;
385 assertEquals(TEST_2008.isSupported(ChronoUnit.DECADES), true); in test_isSupported_TemporalUnit()
588 {Year.of(5), 1, ChronoUnit.DECADES, Year.of(15), null}, in data_plus_long_TemporalUnit()
720 {Year.of(15), 1, ChronoUnit.DECADES, Year.of(5), null}, in data_minus_long_TemporalUnit()
889 {Year.of(2000), Year.of(-1), DECADES, -200}, in data_periodUntilUnit()
890 {Year.of(2000), Year.of(0), DECADES, -200}, in data_periodUntilUnit()
891 {Year.of(2000), Year.of(1), DECADES, -199}, in data_periodUntilUnit()
892 {Year.of(2000), Year.of(1989), DECADES, -1}, in data_periodUntilUnit()
893 {Year.of(2000), Year.of(1990), DECADES, -1}, in data_periodUntilUnit()
894 {Year.of(2000), Year.of(1991), DECADES, 0}, in data_periodUntilUnit()
[all …]
DTCKLocalDate.java77 import static java.time.temporal.ChronoUnit.DECADES;
659 assertEquals(TEST_2007_07_15.isSupported(ChronoUnit.DECADES), true);
1691 {date(2000, 1, 1), date(2000, 1, 1), DECADES, 0},
1718 {date(2000, 1, 15), date(2010, 1, 14), DECADES, 0},
1719 {date(2000, 1, 15), date(2010, 1, 15), DECADES, 1},
DTCKLocalDateTime.java92 import static java.time.temporal.ChronoUnit.DECADES;
971 assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoUnit.DECADES), true);
2768 {dtNoon(2000, 1, 1), dtNoon(2000, 1, 1), DECADES, 0},
2795 {dtNoon(2000, 1, 15), dtNoon(2010, 1, 14), DECADES, 0},
2796 {dtNoon(2000, 1, 15), dtNoon(2010, 1, 15), DECADES, 1},
DTCKPeriod.java1168 {ChronoUnit.DECADES}, in data_badTemporalUnit()
DTCKOffsetTime.java571 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoUnit.DECADES), false);
DTCKDuration.java2718 {0, ChronoUnit.DECADES}, in provider_factory_of_badTemporalUnit()
DTCKOffsetDateTime.java588 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoUnit.DECADES), true);
DTCKLocalTime.java613 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoUnit.DECADES), false); in test_isSupported_TemporalUnit()
DTCKZonedDateTime.java914 assertEquals(TEST_DATE_TIME.isSupported(ChronoUnit.DECADES), true);
/libcore/ojluni/src/main/java/java/time/
DYear.java68 import static java.time.temporal.ChronoUnit.DECADES;
398 … return unit == YEARS || unit == DECADES || unit == CENTURIES || unit == MILLENNIA || unit == ERAS; in isSupported()
706 case DECADES: return plusYears(Math.multiplyExact(amountToAdd, 10)); in plus()
913 case DECADES: return yearsUntil / 10; in until()
DYearMonth.java70 import static java.time.temporal.ChronoUnit.DECADES;
386 …return unit == MONTHS || unit == YEARS || unit == DECADES || unit == CENTURIES || unit == MILLENNI… in isSupported()
804 case DECADES: return plusYears(Math.multiplyExact(amountToAdd, 10)); in plus()
1046 case DECADES: return monthsUntil / 120; in until()
DLocalDate.java1236 case DECADES: return plusYears(Math.multiplyExact(amountToAdd, 10)); in plus()
1603 case DECADES: return monthsUntil(end) / 120; in until()
/libcore/luni/src/test/java/libcore/java/time/
DInstantTest.java47 assertEquals(false, Instant.EPOCH.isSupported(ChronoUnit.DECADES)); in test_isSupported_TemporalUnit()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoUnit.java157 DECADES("Decades", Duration.ofSeconds(31556952L * 10L)), enumConstant
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDateImpl.java206 case DECADES: return plusYears(Math.multiplyExact(amountToAdd, 10)); in plus()
385 case DECADES: return monthsUntil(end) / 120; in until()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DCopticDate.java267 case DECADES: return plusYears(Math.multiplyExact(amountToAdd, 10)); in plus()