Home
last modified time | relevance | path

Searched refs:MILLENNIA (Results 1 – 20 of 20) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKChronoUnitSerialization.java67 import static java.time.temporal.ChronoUnit.MILLENNIA;
98 {MILLENNIA}, in data_chronoUnit()
/libcore/ojluni/src/main/java/java/time/
DYear.java70 import static java.time.temporal.ChronoUnit.MILLENNIA;
399 … 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()
DYearMonth.java72 import static java.time.temporal.ChronoUnit.MILLENNIA;
387 …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()
DLocalDate.java1264 case MILLENNIA: return plusYears(Math.multiplyExact(amountToAdd, 1000)); in plus()
1647 case MILLENNIA: return monthsUntil(end) / 12000; in until()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKYearMonth.java71 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 …]
DTCKYear.java68 import static java.time.temporal.ChronoUnit.MILLENNIA;
407 assertEquals(TEST_2008.isSupported(ChronoUnit.MILLENNIA), true); in test_isSupported_TemporalUnit()
931 {Year.of(2000), Year.of(-1), MILLENNIA, -2}, in data_periodUntilUnit()
932 {Year.of(2000), Year.of(0), MILLENNIA, -2}, in data_periodUntilUnit()
933 {Year.of(2000), Year.of(1), MILLENNIA, -1}, in data_periodUntilUnit()
934 {Year.of(2000), Year.of(999), MILLENNIA, -1}, in data_periodUntilUnit()
935 {Year.of(2000), Year.of(1000), MILLENNIA, -1}, in data_periodUntilUnit()
936 {Year.of(2000), Year.of(1001), MILLENNIA, 0}, in data_periodUntilUnit()
937 {Year.of(2000), Year.of(2000), MILLENNIA, 0}, in data_periodUntilUnit()
938 {Year.of(2000), Year.of(2999), MILLENNIA, 0}, in data_periodUntilUnit()
[all …]
DTCKLocalDate.java79 import static java.time.temporal.ChronoUnit.MILLENNIA;
706 assertEquals(TEST_2007_07_15.isSupported(ChronoUnit.MILLENNIA), true);
1762 {date(2000, 1, 1), date(2000, 1, 1), MILLENNIA, 0},
1793 {date(2000, 1, 15), date(3000, 1, 14), MILLENNIA, 0},
1794 {date(2000, 1, 15), date(3000, 1, 15), MILLENNIA, 1},
DTCKLocalDateTime.java96 import static java.time.temporal.ChronoUnit.MILLENNIA;
967 assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoUnit.MILLENNIA), true);
2764 {dtNoon(2000, 1, 1), dtNoon(2000, 1, 1), MILLENNIA, 0},
2795 {dtNoon(2000, 1, 15), dtNoon(3000, 1, 14), MILLENNIA, 0},
2796 {dtNoon(2000, 1, 15), dtNoon(3000, 1, 15), MILLENNIA, 1},
DTCKPeriod.java1170 {ChronoUnit.MILLENNIA}, in data_badTemporalUnit()
DTCKOffsetTime.java565 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoUnit.MILLENNIA), false);
DTCKOffsetDateTime.java575 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoUnit.MILLENNIA), true);
DTCKDuration.java3108 {0, ChronoUnit.MILLENNIA}, in provider_factory_of_badTemporalUnit()
DTCKLocalTime.java643 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoUnit.MILLENNIA), false); in test_isSupported_TemporalUnit()
DTCKZonedDateTime.java911 assertEquals(TEST_DATE_TIME.isSupported(ChronoUnit.MILLENNIA), true);
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoUnit.java67 import static java.time.temporal.ChronoUnit.MILLENNIA;
103 {MILLENNIA, true, false, true}, in data_chronoUnit()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoUnit.java173 MILLENNIA("Millennia", Duration.ofSeconds(31556952L * 1000L)), enumConstant
/libcore/luni/src/test/java/libcore/java/time/
DInstantTest.java49 assertEquals(false, Instant.EPOCH.isSupported(ChronoUnit.MILLENNIA)); in test_isSupported_TemporalUnit()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDateImpl.java208 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/
DCopticDate.java270 case MILLENNIA: return plusYears(Math.multiplyExact(amountToAdd, 1000)); in plus()
/libcore/api/
Dcurrent.txt12525 enum_constant public static final java.time.temporal.ChronoUnit MILLENNIA;