Home
last modified time | relevance | path

Searched refs:ERAS (Results 1 – 18 of 18) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKChronoUnitSerialization.java62 import static java.time.temporal.ChronoUnit.ERAS;
97 {ERAS}, in data_chronoUnit()
/libcore/ojluni/src/main/java/java/time/chrono/
DEra.java65 import static java.time.temporal.ChronoUnit.ERAS;
270 return (R) ERAS; in query()
DChronoLocalDateImpl.java209 case ERAS: return with(ERA, Math.addExact(getLong(ERA), amountToAdd)); in plus()
388 case ERAS: return end.getLong(ERA) - getLong(ERA); in until()
/libcore/ojluni/src/main/java/java/time/
DYear.java69 import static java.time.temporal.ChronoUnit.ERAS;
398 … return unit == YEARS || unit == DECADES || unit == CENTURIES || unit == MILLENNIA || unit == ERAS; in isSupported()
709 case ERAS: return with(ERA, Math.addExact(getLong(ERA), amountToAdd)); in plus()
916 case ERAS: return end.getLong(ERA) - getLong(ERA); in until()
DYearMonth.java71 import static java.time.temporal.ChronoUnit.ERAS;
386 …NTHS || unit == YEARS || unit == DECADES || unit == CENTURIES || unit == MILLENNIA || unit == ERAS; in isSupported()
807 case ERAS: return with(ERA, Math.addExact(getLong(ERA), amountToAdd)); in plus()
1049 case ERAS: return end.getLong(ERA) - getLong(ERA); in until()
DLocalDate.java1239 case ERAS: return with(ERA, Math.addExact(getLong(ERA), amountToAdd)); in plus()
1606 case ERAS: return end.getLong(ERA) - getLong(ERA); in until()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoUnit.java62 import static java.time.temporal.ChronoUnit.ERAS;
102 {ERAS, true, false, true}, in data_chronoUnit()
/libcore/luni/src/test/java/libcore/java/time/
DInstantTest.java50 assertEquals(false, Instant.EPOCH.isSupported(ChronoUnit.ERAS)); in test_isSupported_TemporalUnit()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoUnit.java182 ERAS("Eras", Duration.ofSeconds(31556952L * 1000_000_000L)), enumConstant
DChronoField.java71 import static java.time.temporal.ChronoUnit.ERAS;
561 ERA("Era", ERAS, FOREVER, ValueRange.of(0, 1), "era"),
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKYear.java388 assertEquals(TEST_2008.isSupported(ChronoUnit.ERAS), true); in test_isSupported_TemporalUnit()
586 {Year.of(-1), 1, ChronoUnit.ERAS, Year.of(2), null}, in data_plus_long_TemporalUnit()
718 {Year.of(999999999), 1, ChronoUnit.ERAS, Year.of(-999999999 + 1), null}, in data_minus_long_TemporalUnit()
DTCKYearMonth.java453 assertEquals(TEST_2008_06.isSupported(ChronoUnit.ERAS), true); in test_isSupported_TemporalUnit()
762 {YearMonth.of(-1, 10), 1, ChronoUnit.ERAS, YearMonth.of(2, 10), null}, in data_plus_long_TemporalUnit()
977 {YearMonth.of(1, 10), 1, ChronoUnit.ERAS, YearMonth.of(0, 10), null}, in data_minus_long_TemporalUnit()
DTCKOffsetTime.java574 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoUnit.ERAS), false);
DTCKOffsetDateTime.java591 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoUnit.ERAS), true);
DTCKLocalDate.java662 assertEquals(TEST_2007_07_15.isSupported(ChronoUnit.ERAS), true);
DTCKLocalTime.java616 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoUnit.ERAS), false); in test_isSupported_TemporalUnit()
DTCKZonedDateTime.java917 assertEquals(TEST_DATE_TIME.isSupported(ChronoUnit.ERAS), true);
DTCKLocalDateTime.java974 assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoUnit.ERAS), true);