/libcore/ojluni/src/main/java/java/time/temporal/ |
D | JulianFields.java | 64 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()
|
D | TemporalQueries.java | 64 import static java.time.temporal.ChronoField.EPOCH_DAY; 382 if (temporal.isSupported(EPOCH_DAY)) { 383 return LocalDate.ofEpochDay(temporal.getLong(EPOCH_DAY));
|
D | IsoFields.java | 66 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/ |
D | TCKJulianFields.java | 92 {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()
|
D | TCKChronoField.java | 69 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/ |
D | CopticChronology.java | 59 import static java.time.temporal.ChronoField.EPOCH_DAY; 192 return CopticDate.ofEpochDay(dateTime.getLong(EPOCH_DAY)); in date()
|
D | TCKChronology.java | 173 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()
|
D | TCKIsoChronology.java | 154 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()
|
D | CopticDate.java | 219 case EPOCH_DAY: return toEpochDay(); in getLong() 244 case EPOCH_DAY: return ofEpochDay(nvalue); in with()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDate.java | 64 import static java.time.temporal.ChronoField.EPOCH_DAY; 548 return temporal.with(EPOCH_DAY, toEpochDay()); in adjustInto() 670 return getLong(EPOCH_DAY); in toEpochDay()
|
D | ChronoLocalDateTime.java | 64 import static java.time.temporal.ChronoField.EPOCH_DAY; 379 .with(EPOCH_DAY, toLocalDate().toEpochDay()) in adjustInto()
|
D | ChronoLocalDateTimeImpl.java | 64 import static java.time.temporal.ChronoField.EPOCH_DAY; 377 long amount = end.getLong(EPOCH_DAY) - date.getLong(EPOCH_DAY); in until()
|
D | HijrahDate.java | 369 case EPOCH_DAY: return toEpochDay(); in getLong() 400 case EPOCH_DAY: return new HijrahDate(chrono, newValue); in with()
|
D | AbstractChronology.java | 71 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/ |
D | TCKDateTimeParseResolver.java | 75 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/ |
D | TCKChronoFieldSerialization.java | 69 import static java.time.temporal.ChronoField.EPOCH_DAY; 113 {EPOCH_DAY}, in data_fieldBased()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeParsing.java | 62 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/ |
D | DateTimePrintContext.java | 64 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/ |
D | TestDateTimeBuilderCombinations.java | 69 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/ |
D | HijrahChronologyTest.java | 51 assertEquals(date.toEpochDay(), date.getLong(ChronoField.EPOCH_DAY)); in test_HijrahDate_getLong()
|
D | ThaiBuddhistChronologyTest.java | 122 assertEquals(date.toEpochDay(), date.getLong(ChronoField.EPOCH_DAY)); in test_ThaiBuddhistDate_getLong()
|
D | MinguoChronologyTest.java | 120 assertEquals(date.toEpochDay(), date.getLong(ChronoField.EPOCH_DAY)); in test_MinguoDate_getLong()
|
D | JapaneseChronologyTest.java | 95 assertEquals(true, date.isSupported(ChronoField.EPOCH_DAY)); in test_JapaneseDate_isSupported_TemporalField()
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalDate.java | 71 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/ |
D | YearMonthTest.java | 105 ChronoField.EPOCH_DAY, in test_with_TemporalField_long_invalidField()
|