/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateTime.java | 186 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()
|
D | ChronoZonedDateTime.java | 223 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()
|
D | ChronoLocalDateTimeImpl.java | 228 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()
|
D | AbstractChronology.java | 141 …int cmp = Long.compare(dateTime1.toLocalDate().toEpochDay(), dateTime2.toLocalDate().toEpochDay());
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestLocalDateTime.java | 127 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()
|
D | TestOffsetDateTime.java | 115 assertSame(a.toLocalDate(), localDate); in test_get_same()
|
D | TestOffsetDateTime_instants.java | 245 if (expected.toLocalDate().equals(maxDate) == false) { in doTest_factory_ofInstant_all()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestExampleCode.java | 173 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()
|
D | TestUmmAlQuraChronology.java | 670 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/ |
D | TCKLocalDateTime.java | 1105 …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 …]
|
D | TCKZonedDateTime.java | 363 …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/ |
D | OffsetDateTime.java | 721 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()
|
D | ZonedDateTime.java | 1034 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()
|
D | LocalDateTime.java | 729 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/ |
D | IsoChronologyTest.java | 107 assertEquals(LocalDate.of(2017, 4, 1), result.toLocalDate()); in test_zonedDateTime()
|
D | JapaneseChronologyTest.java | 51 assertEquals(JapaneseDate.of(JapaneseEra.HEISEI, 29, 4, 1), result.toLocalDate()); in test_zonedDateTime()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKMinguoChronology.java | 220 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/ |
D | Parsed.java | 282 updateCheckConflict(cldt.toLocalDate()); in resolveFields() 345 updateCheckConflict(zdt.toLocalDate()); in resolveInstantFields0()
|
/libcore/ojluni/src/test/java/time/test/java/util/ |
D | TestFormatter.java | 187 test(fmtStr, locale, expected, zdt.toLocalDate()); in testDate()
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKZoneRules.java | 658 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/ |
D | OffsetDateTime.java | 181 public java.time.LocalDate toLocalDate() { in toLocalDate() method in OffsetDateTime
|