/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestLocalDateTime.java | 128 assertSame(t.toLocalTime(), TEST_2007_07_15_12_30_40_987654321.toLocalTime()); in test_withYear_int_noChange() 135 assertSame(t.toLocalTime(), TEST_2007_07_15_12_30_40_987654321.toLocalTime()); in test_withMonth_int_noChange() 159 assertSame(t.toLocalTime(), LocalTime.MIDNIGHT); in test_withHour_toMidnight() 165 assertSame(t.toLocalTime(), LocalTime.NOON); in test_withHour_toMidday() 177 assertSame(t.toLocalTime(), LocalTime.MIDNIGHT); in test_withMinute_toMidnight() 183 assertSame(t.toLocalTime(), LocalTime.NOON); in test_withMinute_toMidday() 195 assertSame(t.toLocalTime(), LocalTime.MIDNIGHT); in test_withSecond_toMidnight() 201 assertSame(t.toLocalTime(), LocalTime.NOON); in test_withSecond_toMidday() 213 assertSame(t.toLocalTime(), LocalTime.MIDNIGHT); in test_withNanoOfSecond_toMidnight() 219 assertSame(t.toLocalTime(), LocalTime.NOON); in test_withNanoOfSecond_toMidday() [all …]
|
D | TestOffsetDateTime.java | 120 assertSame(a.toLocalTime(), localTime); in test_get_same()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateTime.java | 143 … cmp = Long.compare(dateTime1.toLocalTime().toNanoOfDay(), dateTime2.toLocalTime().toNanoOfDay()); in timeLineOrder() 214 LocalTime toLocalTime(); in toLocalTime() method 347 return (R) toLocalTime(); in query() 387 .with(NANO_OF_DAY, toLocalTime().toNanoOfDay()); in adjustInto() 453 return Instant.ofEpochSecond(toEpochSecond(offset), toLocalTime().getNano()); in toInstant() 473 long secs = epochDay * 86400 + toLocalTime().toSecondOfDay(); in toEpochSecond() 509 cmp = toLocalTime().compareTo(other.toLocalTime()); in compareTo() 535 … (thisEpDay == otherEpDay && this.toLocalTime().toNanoOfDay() > other.toLocalTime().toNanoOfDay()); in isAfter() 556 … (thisEpDay == otherEpDay && this.toLocalTime().toNanoOfDay() < other.toLocalTime().toNanoOfDay()); in isBefore() 575 return this.toLocalTime().toNanoOfDay() == other.toLocalTime().toNanoOfDay() && in isEqual()
|
D | ChronoZonedDateTime.java | 144 … cmp = Long.compare(dateTime1.toLocalTime().getNano(), dateTime2.toLocalTime().getNano()); in timeLineOrder() 242 default LocalTime toLocalTime() { in toLocalTime() method 243 return toLocalDateTime().toLocalTime(); in toLocalTime() 496 return (R) toLocalTime(); in query() 538 return Instant.ofEpochSecond(toEpochSecond(), toLocalTime().getNano()); in toInstant() 554 long secs = epochDay * 86400 + toLocalTime().toSecondOfDay(); in toEpochSecond() 579 cmp = toLocalTime().getNano() - other.toLocalTime().getNano(); in compareTo() 610 … (thisEpochSec == otherEpochSec && toLocalTime().getNano() < other.toLocalTime().getNano()); in isBefore() 630 … (thisEpochSec == otherEpochSec && toLocalTime().getNano() > other.toLocalTime().getNano()); in isAfter() 648 toLocalTime().getNano() == other.toLocalTime().getNano(); in isEqual()
|
D | ChronoLocalDateTimeImpl.java | 234 public LocalTime toLocalTime() { in toLocalTime() method in ChronoLocalDateTimeImpl 382 return Math.addExact(amount, time.until(end.toLocalTime(), unit)); in until() 385 if (end.toLocalTime().isBefore(time)) { in until() 448 return toLocalDate().hashCode() ^ toLocalTime().hashCode(); in hashCode() 453 return toLocalDate().toString() + 'T' + toLocalTime().toString(); in toString()
|
/libcore/ojluni/src/main/java/java/time/ |
D | OffsetDateTime.java | 173 cmp = datetime1.toLocalTime().getNano() - datetime2.toLocalTime().getNano(); in compareInstant() 817 public LocalTime toLocalTime() { in toLocalTime() method in OffsetDateTime 818 return dateTime.toLocalTime(); in toLocalTime() 1546 return (R) toLocalTime(); in query() 1591 .with(NANO_OF_DAY, toLocalTime().toNanoOfDay()) in adjustInto() 1734 return OffsetTime.of(dateTime.toLocalTime(), offset); in toOffsetTime() 1825 … (thisEpochSec == otherEpochSec && toLocalTime().getNano() > other.toLocalTime().getNano()); in isAfter() 1842 … (thisEpochSec == otherEpochSec && toLocalTime().getNano() < other.toLocalTime().getNano()); in isBefore() 1857 toLocalTime().getNano() == other.toLocalTime().getNano(); in isEqual()
|
D | ZonedDateTime.java | 1132 public LocalTime toLocalTime() { in toLocalTime() method in ZonedDateTime 1133 return dateTime.toLocalTime(); in toLocalTime() 1227 return resolveLocal(LocalDateTime.of((LocalDate) adjuster, dateTime.toLocalTime())); in with()
|
D | LocalDateTime.java | 822 public LocalTime toLocalTime() { in toLocalTime() method in LocalDateTime 1816 cmp = time.compareTo(other.toLocalTime()); in compareTo0()
|
D | OffsetTime.java | 603 public LocalTime toLocalTime() { in toLocalTime() method in OffsetTime
|
D | LocalDate.java | 1894 return OffsetDateTime.of(LocalDateTime.of(this, time.toLocalTime()), time.getOffset()); in atTime()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/ |
D | TCKChronoLocalDateTimeSerialization.java | 99 ChronoLocalDateTime<?> original = chrono.date(ref).atTime(ref.toLocalTime()); in test_ChronoLocalDateTimeSerialization()
|
D | TCKChronoZonedDateTimeSerialization.java | 99 …ChronoZonedDateTime<?> original = chrono.date(ref).atTime(ref.toLocalTime()).atZone(ref.getZone()); in test_ChronoZonedDateTimeSerialization()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKOffsetTime.java | 211 … long diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() 216 … diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() 282 assertEquals(test.toLocalTime(), LocalTime.of(h, m, s, n)); 499 assertEquals(a.toLocalTime(), localTime); 637 assertEquals(test.toLocalTime(), base.toLocalTime()); 687 …ime.of(LocalTime.of(23, 5), OFFSET_PONE), OffsetTime.of(OffsetTime.MAX.toLocalTime(), ZoneOffset.o… 688 …ime.of(LocalTime.of(23, 5), OFFSET_PONE), OffsetTime.of(OffsetTime.MIN.toLocalTime(), ZoneOffset.o… 1237 return DATE.atTime(ot.toLocalTime()).toInstant(ot.getOffset());
|
D | TCKLocalDateTime.java | 265 … long diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() 270 … diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() 343 assertEquals(test.toLocalTime(), expected); 1116 TEST_2007_07_15_12_30_40_987654321.toLocalTime()); 1785 assertEquals(dt.toLocalTime(), t); 1805 assertEquals(dt.toLocalTime(), t); 1849 assertEquals(dt.toLocalTime(), t, String.valueOf(i)); 2474 assertEquals(dt.toLocalTime(), t); 2494 assertEquals(dt.toLocalTime(), t); 2541 assertEquals(dt.toLocalTime(), t);
|
D | TCKZonedDateTime.java | 233 … long diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() 238 … diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() 309 assertEquals(test.toLocalTime(), expected); 357 …RIS_GAP_2008_03_30_02_30.toLocalDate(), TEST_PARIS_GAP_2008_03_30_02_30.toLocalTime(), ZONE_PARIS); 363 …LAP_2008_10_26_02_30.toLocalDate(), TEST_PARIS_OVERLAP_2008_10_26_02_30.toLocalTime(), ZONE_PARIS); 845 assertEquals(a.toLocalTime(), localTime); 2001 if (base.toLocalTime().equals(end.toLocalTime()) == false) {
|
D | TCKOffsetDateTime.java | 241 … long diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() 246 … diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() 299 assertEquals(test.toLocalTime(), expected);
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | IsoChronologyTest.java | 108 assertEquals(LocalTime.of(15, 14, 13, 12), result.toLocalTime()); in test_zonedDateTime()
|
D | JapaneseChronologyTest.java | 55 assertEquals(LocalTime.of(15, 14, 13, 12), result.toLocalTime()); in test_zonedDateTime()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestUmmAlQuraChronology.java | 672 assertEquals(result.toLocalTime(), expectedTime); in test_zonedDateTime() 694 assertEquals(result.toLocalTime(), LocalTime.of(2, 7, 1, 1)); in test_Instant_zonedDateTime() 698 assertEquals(result.toLocalTime(), LocalTime.of(2, 7, 1, 1)); in test_Instant_zonedDateTime() 724 assertEquals(result.toLocalTime(), expectedTime); in test_localDateTime()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKMinguoChronology.java | 430 assertEquals(result.toLocalTime(), expectedTime); in test_localDateTime() 464 assertEquals(result.toLocalTime(), expectedTime); in test_zonedDateTime() 486 assertEquals(result.toLocalTime(), LocalTime.of(2, 7, 1, 1)); in test_Instant_zonedDateTime() 490 assertEquals(result.toLocalTime(), LocalTime.of(2, 7, 1, 1)); in test_Instant_zonedDateTime()
|
D | TCKChronoLocalDateTime.java | 290 otherDates.add(chrono2.date(d).atTime(d.toLocalTime())); in test_datetime_comparisons()
|
D | TCKChronoZonedDateTime.java | 293 otherDates.add(chrono2.date(d).atTime(d.toLocalTime()).atZone(d.getZone())); in test_zonedDateTime_comparisons()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | Parsed.java | 294 updateCheckConflict(cldt.toLocalTime(), Period.ZERO); in resolveFields() 360 … updateCheckConflict(INSTANT_SECONDS, SECOND_OF_DAY, (long) zdt.toLocalTime().toSecondOfDay()); in resolveInstantFields0()
|
/libcore/ojluni/src/test/java/time/test/java/util/ |
D | TestFormatter.java | 242 test(fmtStr, locale, expected, zdt.toLocalTime()); in testTime()
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | OffsetDateTime.java | 209 public java.time.LocalTime toLocalTime() { in toLocalTime() method in OffsetDateTime
|