Home
last modified time | relevance | path

Searched refs:EPOCH_DAY (Results 1 – 25 of 40) sorted by relevance

12

/libcore/ojluni/src/main/java/java/time/temporal/
DJulianFields.java64 import static java.time.temporal.ChronoField.EPOCH_DAY;
264 return temporal.isSupported(EPOCH_DAY); in isSupportedBy()
277 return temporal.getLong(EPOCH_DAY) + offset; in getFrom()
286 return (R) temporal.with(EPOCH_DAY, Math.subtractExact(newValue, offset)); in adjustInto()
DTemporalQueries.java64 import static java.time.temporal.ChronoField.EPOCH_DAY;
382 if (temporal.isSupported(EPOCH_DAY)) {
383 return LocalDate.ofEpochDay(temporal.getLong(EPOCH_DAY));
DIsoFields.java66 import static java.time.temporal.ChronoField.EPOCH_DAY;
443 return temporal.isSupported(EPOCH_DAY) && isIso(temporal); in isSupportedBy()
524 return temporal.isSupported(EPOCH_DAY) && isIso(temporal); in isSupportedBy()
685 return temporal.isSupported(EPOCH_DAY); in isSupportedBy()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKJulianFields.java92 {ChronoField.EPOCH_DAY, JAN01_1970, 0L}, in data_samples()
97 {ChronoField.EPOCH_DAY, DEC31_1969, -1L}, in data_samples()
102 {ChronoField.EPOCH_DAY, NOV12_1945, (-24 * 365 - 6) - 31 - 30 + 11}, in data_samples()
107 {ChronoField.EPOCH_DAY, JAN01_0001, (-24 * 365 - 6) - 31 - 30 + 11 - 710346L}, in data_samples()
DTCKChronoField.java69 import static java.time.temporal.ChronoField.EPOCH_DAY;
162 {EPOCH_DAY, true, false}, in data_fieldBased()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DCopticChronology.java59 import static java.time.temporal.ChronoField.EPOCH_DAY;
192 return CopticDate.ofEpochDay(dateTime.getLong(EPOCH_DAY)); in date()
DTCKChronology.java173 long epoch1 = date1.getLong(ChronoField.EPOCH_DAY); in test_epoch()
174 ChronoLocalDate date2 = date1.with(ChronoField.EPOCH_DAY, epoch1); in test_epoch()
176 long epoch2 = date1.getLong(ChronoField.EPOCH_DAY); in test_epoch()
184 long epochDay = date.getLong(ChronoField.EPOCH_DAY); in test_dateEpochDay()
DTCKIsoChronology.java154 if (field == ChronoField.EPOCH_DAY) { in test_date_TemporalAccessor()
162 if (field == ChronoField.EPOCH_DAY) { in test_date_TemporalAccessor()
190 if (field == ChronoField.EPOCH_DAY || field == ChronoField.NANO_OF_DAY) { in test_localDateTime_TemporalAccessor()
198 if (field == ChronoField.EPOCH_DAY) { in test_localDateTime_TemporalAccessor()
232 if (field == ChronoField.EPOCH_DAY || field == ChronoField.NANO_OF_DAY || in test_zonedDateTime_TemporalAccessor()
247 if (field == ChronoField.EPOCH_DAY) { in test_zonedDateTime_TemporalAccessor()
DCopticDate.java219 case EPOCH_DAY: return toEpochDay(); in getLong()
244 case EPOCH_DAY: return ofEpochDay(nvalue); in with()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDate.java64 import static java.time.temporal.ChronoField.EPOCH_DAY;
548 return temporal.with(EPOCH_DAY, toEpochDay()); in adjustInto()
670 return getLong(EPOCH_DAY); in toEpochDay()
DChronoLocalDateTime.java64 import static java.time.temporal.ChronoField.EPOCH_DAY;
379 .with(EPOCH_DAY, toLocalDate().toEpochDay()) in adjustInto()
DChronoLocalDateTimeImpl.java64 import static java.time.temporal.ChronoField.EPOCH_DAY;
377 long amount = end.getLong(EPOCH_DAY) - date.getLong(EPOCH_DAY); in until()
DHijrahDate.java369 case EPOCH_DAY: return toEpochDay(); in getLong()
400 case EPOCH_DAY: return new HijrahDate(chrono, newValue); in with()
DAbstractChronology.java71 import static java.time.temporal.ChronoField.EPOCH_DAY;
455 if (fieldValues.containsKey(EPOCH_DAY)) { in resolveDate()
456 return dateEpochDay(fieldValues.remove(EPOCH_DAY)); in resolveDate()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeParseResolver.java75 import static java.time.temporal.ChronoField.EPOCH_DAY;
278 {EPOCH_DAY, 32, LocalDate.of(1970, 2, 2)}, in data_resolveOneToDate()
369 {EPOCH_DAY, 32, ERA, 1, LocalDate.of(1970, 2, 2)}, in data_resolveTwoToDate()
370 {EPOCH_DAY, -146097 * 5L, ERA, 0, LocalDate.of(1970 - (400 * 5), 1, 1)}, in data_resolveTwoToDate()
371 {EPOCH_DAY, 32, YEAR, 1970, LocalDate.of(1970, 2, 2)}, in data_resolveTwoToDate()
372 … {EPOCH_DAY, -146097 * 5L, YEAR, 1970 - (400 * 5), LocalDate.of(1970 - (400 * 5), 1, 1)}, in data_resolveTwoToDate()
373 {EPOCH_DAY, 32, YEAR_OF_ERA, 1970, LocalDate.of(1970, 2, 2)}, in data_resolveTwoToDate()
374 …{EPOCH_DAY, -146097 * 5L, YEAR_OF_ERA, 1 - (1970 - (400 * 5)), LocalDate.of(1970 - (400 * 5), 1, 1… in data_resolveTwoToDate()
375 {EPOCH_DAY, 32, MONTH_OF_YEAR, 2, LocalDate.of(1970, 2, 2)}, in data_resolveTwoToDate()
376 {EPOCH_DAY, 32, DAY_OF_YEAR, 33, LocalDate.of(1970, 2, 2)}, in data_resolveTwoToDate()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKChronoFieldSerialization.java69 import static java.time.temporal.ChronoField.EPOCH_DAY;
113 {EPOCH_DAY}, in data_fieldBased()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeParsing.java62 import static java.time.temporal.ChronoField.EPOCH_DAY;
158 assertEquals(actual.isSupported(EPOCH_DAY), true); in test_parse_instantZones_supported()
197 assertEquals(actual.isSupported(EPOCH_DAY), false); in test_parse_instantNoZone_supported()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimePrintContext.java64 import static java.time.temporal.ChronoField.EPOCH_DAY;
163 if (temporal.isSupported(EPOCH_DAY)) { in adjust()
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestDateTimeBuilderCombinations.java69 import static java.time.temporal.ChronoField.EPOCH_DAY;
100 … {EPOCH_DAY, 12, null, null, null, null, null, null, LocalDate.class, LocalDate.of(1970, 1, 13)}, in data_combine()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DHijrahChronologyTest.java51 assertEquals(date.toEpochDay(), date.getLong(ChronoField.EPOCH_DAY)); in test_HijrahDate_getLong()
DThaiBuddhistChronologyTest.java122 assertEquals(date.toEpochDay(), date.getLong(ChronoField.EPOCH_DAY)); in test_ThaiBuddhistDate_getLong()
DMinguoChronologyTest.java120 assertEquals(date.toEpochDay(), date.getLong(ChronoField.EPOCH_DAY)); in test_MinguoDate_getLong()
DJapaneseChronologyTest.java95 assertEquals(true, date.isSupported(ChronoField.EPOCH_DAY)); in test_JapaneseDate_isSupported_TemporalField()
/libcore/ojluni/src/main/java/java/time/
DLocalDate.java71 import static java.time.temporal.ChronoField.EPOCH_DAY;
647 if (field == EPOCH_DAY) { in getLong()
665 …case EPOCH_DAY: throw new UnsupportedTemporalTypeException("Invalid field 'EpochDay' for get() met… in get0()
1024 case EPOCH_DAY: return LocalDate.ofEpochDay(newValue); in with()
/libcore/luni/src/test/java/libcore/java/time/
DYearMonthTest.java105 ChronoField.EPOCH_DAY, in test_with_TemporalField_long_invalidField()

12