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.java141 …int cmp = Long.compare(dateTime1.toLocalDate().toEpochDay(), dateTime2.toLocalDate().toEpochDay()); in timeLineOrder()
193 return toLocalDate().getChronology(); in getChronology()
204 D toLocalDate(); in toLocalDate() method
386 .with(EPOCH_DAY, toLocalDate().toEpochDay()) in adjustInto()
472 long epochDay = toLocalDate().toEpochDay(); in toEpochSecond()
507 int cmp = toLocalDate().compareTo(other.toLocalDate()); in compareTo()
532 long thisEpDay = this.toLocalDate().toEpochDay(); in isAfter()
533 long otherEpDay = other.toLocalDate().toEpochDay(); in isAfter()
553 long thisEpDay = this.toLocalDate().toEpochDay(); in isBefore()
554 long otherEpDay = other.toLocalDate().toEpochDay(); in isBefore()
[all …]
DChronoZonedDateTime.java230 default D toLocalDate() { in toLocalDate() method
231 return toLocalDateTime().toLocalDate(); in toLocalDate()
265 return toLocalDate().getChronology(); in getChronology()
553 long epochDay = toLocalDate().toEpochDay(); in toEpochSecond()
DChronoLocalDateTimeImpl.java229 public D toLocalDate() { in toLocalDate() method in ChronoLocalDateTimeImpl
384 ChronoLocalDate endDate = end.toLocalDate(); in until()
448 return toLocalDate().hashCode() ^ toLocalTime().hashCode(); in hashCode()
453 return toLocalDate().toString() + 'T' + toLocalTime().toString(); in toString()
/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.java119 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.java1099 …LocalDateTime a = LocalDateTime.of(TEST_2007_07_15_12_30_40_987654321.toLocalDate(), LocalTime.of(…
1756 LocalDate d = t.toLocalDate();
1765 assertEquals(t.toLocalDate(), d);
1773 LocalDate d = base.toLocalDate().minusDays(3);
1784 assertEquals(dt.toLocalDate(), d);
1792 LocalDate d = base.toLocalDate().minusDays(3);
1804 assertEquals(dt.toLocalDate(), d);
1815 LocalDate d = t.toLocalDate();
1828 assertEquals(t.toLocalDate(), d);
1837 LocalDate d = base.toLocalDate().minusDays(1);
[all …]
DTCKZonedDateTime.java357 …ZonedDateTime test = ZonedDateTime.of(TEST_PARIS_GAP_2008_03_30_02_30.toLocalDate(), TEST_PARIS_GA…
363 …ZonedDateTime test = ZonedDateTime.of(TEST_PARIS_OVERLAP_2008_10_26_02_30.toLocalDate(), TEST_PARI…
844 assertEquals(a.toLocalDate(), localDate);
/libcore/ojluni/src/main/java/java/time/
DOffsetDateTime.java722 public LocalDate toLocalDate() { in toLocalDate() method in OffsetDateTime
723 return dateTime.toLocalDate(); in toLocalDate()
1544 return (R) toLocalDate(); in query()
1590 .with(EPOCH_DAY, toLocalDate().toEpochDay()) in adjustInto()
DZonedDateTime.java1036 public LocalDate toLocalDate() { in toLocalDate() method in ZonedDateTime
1037 return dateTime.toLocalDate(); in toLocalDate()
1229 return resolveLocal(LocalDateTime.of(dateTime.toLocalDate(), (LocalTime) adjuster)); in with()
2047 return (R) toLocalDate(); in query()
DLocalDateTime.java726 public LocalDate toLocalDate() { in toLocalDate() method in LocalDateTime
1814 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.java54 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.java295 updateCheckConflict(cldt.toLocalDate()); in resolveFields()
359 updateCheckConflict(zdt.toLocalDate()); in resolveInstantFields0()
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRules.java687 if (zdt.toLocalDate().isBefore(LocalDate.of(1911, 3, 11))) { in test_Paris_getStandardOffset()
689 } else if (zdt.toLocalDate().isBefore(LocalDate.of(1940, 6, 14))) { in test_Paris_getStandardOffset()
691 } else if (zdt.toLocalDate().isBefore(LocalDate.of(1944, 8, 25))) { in test_Paris_getStandardOffset()
693 } else if (zdt.toLocalDate().isBefore(LocalDate.of(1945, 9, 16))) { in test_Paris_getStandardOffset()
904 if (dateTime.toLocalDate().isBefore(LocalDate.of(1883, 11, 18))) { in test_NewYork_getStandardOffset()
/libcore/ojluni/src/test/java/time/test/java/util/
DTestFormatter.java226 test(fmtStr, locale, expected, zdt.toLocalDate()); in testDate()
/libcore/ojluni/annotations/hiddenapi/java/time/
DOffsetDateTime.java181 public java.time.LocalDate toLocalDate() { in toLocalDate() method in OffsetDateTime
/libcore/api/
Dcurrent.txt11428 method public java.time.LocalDate toLocalDate();
11613 method public java.time.LocalDate toLocalDate();
11883 method public java.time.LocalDate toLocalDate();
11965 method public D toLocalDate();
12008 method public default D toLocalDate();