Home
last modified time | relevance | path

Searched refs:toEpochDay (Results 1 – 21 of 21) sorted by relevance

/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDate.java548 return temporal.with(EPOCH_DAY, toEpochDay()); in adjustInto()
669 default long toEpochDay() { in toEpochDay() method
704 int cmp = Long.compare(toEpochDay(), other.toEpochDay()); in compareTo()
726 return this.toEpochDay() > other.toEpochDay(); in isAfter()
744 return this.toEpochDay() < other.toEpochDay(); in isBefore()
762 return this.toEpochDay() == other.toEpochDay(); in isEqual()
DChronoLocalDateTime.java379 .with(EPOCH_DAY, toLocalDate().toEpochDay()) in adjustInto()
465 long epochDay = toLocalDate().toEpochDay(); in toEpochSecond()
525 long thisEpDay = this.toLocalDate().toEpochDay(); in isAfter()
526 long otherEpDay = other.toLocalDate().toEpochDay(); in isAfter()
546 long thisEpDay = this.toLocalDate().toEpochDay(); in isBefore()
547 long otherEpDay = other.toLocalDate().toEpochDay(); in isBefore()
569 this.toLocalDate().toEpochDay() == other.toLocalDate().toEpochDay(); in isEqual()
DHijrahDate.java210 return HijrahDate.ofEpochDay(HijrahChronology.INSTANCE, LocalDate.now(clock).toEpochDay()); in now()
369 case EPOCH_DAY: return toEpochDay(); in getLong()
473 public long toEpochDay() { in toEpochDay() method in HijrahDate
494 int dow0 = (int)Math.floorMod(toEpochDay() + 3, 7); in getDayOfWeek()
547 return new HijrahDate(chrono, toEpochDay() + days); in plusDays()
595 days = (int) (end.toEpochDay() - calcDate.toEpochDay()); // safe in until()
DChronoLocalDateImpl.java397 return end.toEpochDay() - toEpochDay(); // no overflow in daysUntil()
423 long epDay = toEpochDay(); in hashCode()
DThaiBuddhistDate.java432 public long toEpochDay() { in toEpochDay() method in ThaiBuddhistDate
433 return isoDate.toEpochDay(); in toEpochDay()
DMinguoDate.java432 public long toEpochDay() { in toEpochDay() method in MinguoDate
433 return isoDate.toEpochDay(); in toEpochDay()
DAbstractChronology.java134 return Long.compare(date1.toEpochDay(), date2.toEpochDay());
141 …int cmp = Long.compare(dateTime1.toLocalDate().toEpochDay(), dateTime2.toLocalDate().toEpochDay());
DJapaneseDate.java677 public long toEpochDay() { in toEpochDay() method in JapaneseDate
678 return isoDate.toEpochDay(); in toEpochDay()
DChronoZonedDateTime.java546 long epochDay = toLocalDate().toEpochDay(); in toEpochSecond()
DHijrahChronology.java924 isoStart = (int) LocalDate.of(ymd[0], ymd[1], ymd[2]).toEpochDay(); in loadCalendarData()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DCopticDate.java214 case DAY_OF_WEEK: return Math.floorMod(toEpochDay() + 3, 7) + 1; in getLong()
219 case EPOCH_DAY: return toEpochDay(); in getLong()
296 return CopticDate.ofEpochDay(Math.addExact(toEpochDay(), days)); in plusDays()
317 days = (int) (end.toEpochDay() - calcDate.toEpochDay()); // safe in until()
329 public long toEpochDay() { in toEpochDay() method in CopticDate
370 long epDay = toEpochDay();
DTCKIsoChronology.java163 return LocalDate.of(2012, 6, 30).toEpochDay(); in test_date_TemporalAccessor()
199 return LocalDate.of(2012, 6, 30).toEpochDay(); in test_localDateTime_TemporalAccessor()
248 return LocalDate.of(2012, 6, 30).toEpochDay(); in test_zonedDateTime_TemporalAccessor()
DTCKJapaneseChronology.java242 assertEquals(test.toEpochDay(), iso.toEpochDay()); in test_createByEra_epochDay()
310 assertEquals(test.toEpochDay(), iso.toEpochDay()); in test_createByProleptic_epochDay()
/libcore/ojluni/src/main/java/java/time/
DLocalDate.java648 return toEpochDay(); in getLong()
799 int dow0 = (int)Math.floorMod(toEpochDay() + 3, 7); in getDayOfWeek()
1344 long mjDay = Math.addExact(toEpochDay(), daysToAdd); in plusDays()
1614 return end.toEpochDay() - toEpochDay(); // no overflow in daysUntil()
1663 days = (int) (end.toEpochDay() - calcDate.toEpochDay()); // safe in until()
1822 public long toEpochDay() { in toEpochDay() method in LocalDate
DOffsetDateTime.java1590 .with(EPOCH_DAY, toLocalDate().toEpochDay()) in adjustInto()
/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()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestLocalDate.java412 assertEquals(LocalDate.ofEpochDay(test.toEpochDay()), test); in test_toEpochDay_fromMJDays_symmetry()
417 assertEquals(LocalDate.ofEpochDay(test.toEpochDay()), test); in test_toEpochDay_fromMJDays_symmetry()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalDate.java158 MAX_VALID_EPOCHDAYS = max.toEpochDay(); in setUp()
159 MIN_VALID_EPOCHDAYS = min.toEpochDay(); in setUp()
2104 assertEquals(test.toEpochDay(), i);
2109 assertEquals(test.toEpochDay(), i);
2113 assertEquals(LocalDate.of(1858, 11, 17).toEpochDay(), -40587);
2114 assertEquals(LocalDate.of(1, 1, 1).toEpochDay(), -678575 - 40587);
2115 assertEquals(LocalDate.of(1995, 9, 27).toEpochDay(), 49987 - 40587);
2116 assertEquals(LocalDate.of(1970, 1, 1).toEpochDay(), 0);
2117 assertEquals(LocalDate.of(-1, 12, 31).toEpochDay(), -678942 - 40587);
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestUmmAlQuraChronology.java117 …assertEquals(hd.toEpochDay(), ld.toEpochDay(), "Umm alQura date and ISO date should have same epoc… in Test_UmmAlQuraVsISODates()
510 assertEquals(date.toEpochDay(), epoch); in test_epochDays()