Home
last modified time | relevance | path

Searched refs:MILLENNIA (Results 1 – 19 of 19) 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;
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()
DYearMonth.java72 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()
DLocalDate.java1238 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/
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;
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 …]
DTCKLocalDate.java79 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},
DTCKLocalDateTime.java96 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},
DTCKPeriod.java1170 {ChronoUnit.MILLENNIA}, in data_badTemporalUnit()
DTCKOffsetTime.java573 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoUnit.MILLENNIA), false);
DTCKDuration.java2720 {0, ChronoUnit.MILLENNIA}, in provider_factory_of_badTemporalUnit()
DTCKOffsetDateTime.java590 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoUnit.MILLENNIA), true);
DTCKLocalTime.java615 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoUnit.MILLENNIA), false); in test_isSupported_TemporalUnit()
DTCKZonedDateTime.java916 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.java269 case MILLENNIA: return plusYears(Math.multiplyExact(amountToAdd, 1000)); in plus()