Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDateTime.java186 return toLocalDate().getChronology(); in getChronology()
197 D toLocalDate() ; in toLocalDate() method
379 .with(EPOCH_DAY, toLocalDate().toEpochDay()) in adjustInto()
465 long epochDay = toLocalDate().toEpochDay(); in toEpochSecond()
500 int cmp = toLocalDate().compareTo(other.toLocalDate()); in compareTo()
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()
DChronoZonedDateTime.java223 default D toLocalDate() { in toLocalDate() method
224 return toLocalDateTime().toLocalDate(); in toLocalDate()
258 return toLocalDate().getChronology(); in getChronology()
546 long epochDay = toLocalDate().toEpochDay(); in toEpochSecond()
DChronoLocalDateTimeImpl.java228 public D toLocalDate() { in toLocalDate() method in ChronoLocalDateTimeImpl
389 ChronoLocalDate endDate = end.toLocalDate(); in until()
451 return toLocalDate().hashCode() ^ toLocalTime().hashCode(); in hashCode()
456 return toLocalDate().toString() + 'T' + toLocalTime().toString(); in toString()
DAbstractChronology.java141 …int cmp = Long.compare(dateTime1.toLocalDate().toEpochDay(), dateTime2.toLocalDate().toEpochDay());
/libcore/ojluni/src/test/java/time/test/java/time/
DTestLocalDateTime.java127 assertSame(t.toLocalDate(), TEST_2007_07_15_12_30_40_987654321.toLocalDate()); in test_withYear_int_noChange()
134 assertSame(t.toLocalDate(), TEST_2007_07_15_12_30_40_987654321.toLocalDate()); in test_withMonth_int_noChange()
447 … assertEquals(t.toLocalDate(), TEST_2007_07_15_12_30_40_987654321.toLocalDate().minusDays(1)); in test_minusSeconds_noChange_oneDay()
472 … assertEquals(t.toLocalDate(), TEST_2007_07_15_12_30_40_987654321.toLocalDate().minusDays(1)); in test_minusNanos_noChange_oneDay()
495 assertSame(dt.toLocalDate(), d); in test_getDate()
DTestOffsetDateTime.java115 assertSame(a.toLocalDate(), localDate); in test_get_same()
DTestOffsetDateTime_instants.java245 if (expected.toLocalDate().equals(maxDate) == false) { in doTest_factory_ofInstant_all()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestExampleCode.java173 HijrahDate hd3 = zhdt.toLocalDate(); in HijrahExample1()
175 HijrahDate hd4 = hdt2.toLocalDate(); in HijrahExample1()
183 ChronoLocalDate ld = cldt.toLocalDate(); in test_unknownChronologyWithDateTime()
192 HijrahDate hd3 = noonTomorrow.toLocalDate(); in test_library()
DTestUmmAlQuraChronology.java670 assertEquals(result.toLocalDate(), expectedDate); in test_zonedDateTime()
693 assertEquals(result.toLocalDate(), HijrahChronology.INSTANCE.date(1433, 4, 7)); in test_Instant_zonedDateTime()
697 assertEquals(result.toLocalDate(), HijrahChronology.INSTANCE.date(1433, 4, 7)); in test_Instant_zonedDateTime()
722 assertEquals(result.toLocalDate(), expectedDate); in test_localDateTime()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalDateTime.java1105 …LocalDateTime a = LocalDateTime.of(TEST_2007_07_15_12_30_40_987654321.toLocalDate(), LocalTime.of(…
1762 LocalDate d = t.toLocalDate();
1771 assertEquals(t.toLocalDate(), d);
1779 LocalDate d = base.toLocalDate().minusDays(3);
1790 assertEquals(dt.toLocalDate(), d);
1798 LocalDate d = base.toLocalDate().minusDays(3);
1810 assertEquals(dt.toLocalDate(), d);
1821 LocalDate d = t.toLocalDate();
1834 assertEquals(t.toLocalDate(), d);
1843 LocalDate d = base.toLocalDate().minusDays(1);
[all …]
DTCKZonedDateTime.java363 …ZonedDateTime test = ZonedDateTime.of(TEST_PARIS_GAP_2008_03_30_02_30.toLocalDate(), TEST_PARIS_GA…
369 …ZonedDateTime test = ZonedDateTime.of(TEST_PARIS_OVERLAP_2008_10_26_02_30.toLocalDate(), TEST_PARI…
849 assertEquals(a.toLocalDate(), localDate);
/libcore/ojluni/src/main/java/java/time/
DOffsetDateTime.java721 public LocalDate toLocalDate() { in toLocalDate() method in OffsetDateTime
722 return dateTime.toLocalDate(); in toLocalDate()
1544 return (R) toLocalDate(); in query()
1590 .with(EPOCH_DAY, toLocalDate().toEpochDay()) in adjustInto()
DZonedDateTime.java1034 public LocalDate toLocalDate() { in toLocalDate() method in ZonedDateTime
1035 return dateTime.toLocalDate(); in toLocalDate()
1227 return resolveLocal(LocalDateTime.of(dateTime.toLocalDate(), (LocalTime) adjuster)); in with()
2040 return (R) toLocalDate(); in query()
DLocalDateTime.java729 public LocalDate toLocalDate() { in toLocalDate() method in LocalDateTime
1821 int cmp = date.compareTo0(other.toLocalDate()); in compareTo0()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DIsoChronologyTest.java107 assertEquals(LocalDate.of(2017, 4, 1), result.toLocalDate()); in test_zonedDateTime()
DJapaneseChronologyTest.java51 assertEquals(JapaneseDate.of(JapaneseEra.HEISEI, 29, 4, 1), result.toLocalDate()); in test_zonedDateTime()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKMinguoChronology.java220 MinguoDate a3 = a2.toLocalDate(); in test_MinguoDate()
221 MinguoDate a5 = hzdt.toLocalDate(); in test_MinguoDate()
428 assertEquals(result.toLocalDate(), expectedDate); in test_localDateTime()
462 assertEquals(result.toLocalDate(), expectedDate); in test_zonedDateTime()
485 …assertEquals(result.toLocalDate(), MinguoChronology.INSTANCE.date(MinguoEra.ROC, 2012 - YDIFF, 2, … in test_Instant_zonedDateTime()
489 …assertEquals(result.toLocalDate(), MinguoChronology.INSTANCE.date(MinguoEra.ROC, 2012 - YDIFF, 2, … in test_Instant_zonedDateTime()
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java282 updateCheckConflict(cldt.toLocalDate()); in resolveFields()
345 updateCheckConflict(zdt.toLocalDate()); in resolveInstantFields0()
/libcore/ojluni/src/test/java/time/test/java/util/
DTestFormatter.java187 test(fmtStr, locale, expected, zdt.toLocalDate()); in testDate()
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRules.java658 if (zdt.toLocalDate().isBefore(LocalDate.of(1911, 3, 11))) { in test_Paris_getStandardOffset()
660 } else if (zdt.toLocalDate().isBefore(LocalDate.of(1940, 6, 14))) { in test_Paris_getStandardOffset()
662 } else if (zdt.toLocalDate().isBefore(LocalDate.of(1944, 8, 25))) { in test_Paris_getStandardOffset()
664 } else if (zdt.toLocalDate().isBefore(LocalDate.of(1945, 9, 16))) { in test_Paris_getStandardOffset()
864 if (dateTime.toLocalDate().isBefore(LocalDate.of(1883, 11, 18))) { in test_NewYork_getStandardOffset()
/libcore/ojluni/annotations/hiddenapi/java/time/
DOffsetDateTime.java181 public java.time.LocalDate toLocalDate() { in toLocalDate() method in OffsetDateTime