Home
last modified time | relevance | path

Searched refs:DECADES (Results 1 – 20 of 20) 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;
409 assertEquals(TEST_2008.isSupported(ChronoUnit.DECADES), true); in test_isSupported_TemporalUnit()
612 {Year.of(5), 1, ChronoUnit.DECADES, Year.of(15), null}, in data_plus_long_TemporalUnit()
744 {Year.of(15), 1, ChronoUnit.DECADES, Year.of(5), null}, in data_minus_long_TemporalUnit()
913 {Year.of(2000), Year.of(-1), DECADES, -200}, in data_periodUntilUnit()
914 {Year.of(2000), Year.of(0), DECADES, -200}, in data_periodUntilUnit()
915 {Year.of(2000), Year.of(1), DECADES, -199}, in data_periodUntilUnit()
916 {Year.of(2000), Year.of(1989), DECADES, -1}, in data_periodUntilUnit()
917 {Year.of(2000), Year.of(1990), DECADES, -1}, in data_periodUntilUnit()
918 {Year.of(2000), Year.of(1991), DECADES, 0}, in data_periodUntilUnit()
[all …]
DTCKLocalDate.java77 import static java.time.temporal.ChronoUnit.DECADES;
704 assertEquals(TEST_2007_07_15.isSupported(ChronoUnit.DECADES), true);
1760 {date(2000, 1, 1), date(2000, 1, 1), DECADES, 0},
1787 {date(2000, 1, 15), date(2010, 1, 14), DECADES, 0},
1788 {date(2000, 1, 15), date(2010, 1, 15), DECADES, 1},
DTCKLocalDateTime.java92 import static java.time.temporal.ChronoUnit.DECADES;
965 assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoUnit.DECADES), true);
2762 {dtNoon(2000, 1, 1), dtNoon(2000, 1, 1), DECADES, 0},
2789 {dtNoon(2000, 1, 15), dtNoon(2010, 1, 14), DECADES, 0},
2790 {dtNoon(2000, 1, 15), dtNoon(2010, 1, 15), DECADES, 1},
DTCKPeriod.java1168 {ChronoUnit.DECADES}, in data_badTemporalUnit()
DTCKOffsetTime.java563 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoUnit.DECADES), false);
DTCKOffsetDateTime.java573 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoUnit.DECADES), true);
DTCKDuration.java3106 {0, ChronoUnit.DECADES}, in provider_factory_of_badTemporalUnit()
DTCKLocalTime.java641 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoUnit.DECADES), false); in test_isSupported_TemporalUnit()
DTCKZonedDateTime.java909 assertEquals(TEST_DATE_TIME.isSupported(ChronoUnit.DECADES), true);
/libcore/ojluni/src/main/java/java/time/
DYear.java68 import static java.time.temporal.ChronoUnit.DECADES;
399 … 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;
387 …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.java1262 case DECADES: return plusYears(Math.multiplyExact(amountToAdd, 10)); in plus()
1645 case DECADES: return monthsUntil(end) / 120; in until()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoUnit.java157 DECADES("Decades", Duration.ofSeconds(31556952L * 10L)), enumConstant
/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/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.java268 case DECADES: return plusYears(Math.multiplyExact(amountToAdd, 10)); in plus()
/libcore/api/
Dcurrent.txt12815 enum_constant public static final java.time.temporal.ChronoUnit DECADES;