/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 | 116 assertSame(a.toLocalTime(), localTime); in test_get_same()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateTime.java | 207 LocalTime toLocalTime(); in toLocalTime() method 340 return (R) toLocalTime(); in query() 380 .with(NANO_OF_DAY, toLocalTime().toNanoOfDay()); in adjustInto() 446 return Instant.ofEpochSecond(toEpochSecond(offset), toLocalTime().getNano()); in toInstant() 466 long secs = epochDay * 86400 + toLocalTime().toSecondOfDay(); in toEpochSecond() 502 cmp = toLocalTime().compareTo(other.toLocalTime()); in compareTo() 528 … (thisEpDay == otherEpDay && this.toLocalTime().toNanoOfDay() > other.toLocalTime().toNanoOfDay()); in isAfter() 549 … (thisEpDay == otherEpDay && this.toLocalTime().toNanoOfDay() < other.toLocalTime().toNanoOfDay()); in isBefore() 568 return this.toLocalTime().toNanoOfDay() == other.toLocalTime().toNanoOfDay() && in isEqual()
|
D | ChronoZonedDateTime.java | 235 default LocalTime toLocalTime() { in toLocalTime() method 236 return toLocalDateTime().toLocalTime(); in toLocalTime() 489 return (R) toLocalTime(); in query() 531 return Instant.ofEpochSecond(toEpochSecond(), toLocalTime().getNano()); in toInstant() 547 long secs = epochDay * 86400 + toLocalTime().toSecondOfDay(); in toEpochSecond() 572 cmp = toLocalTime().getNano() - other.toLocalTime().getNano(); in compareTo() 603 … (thisEpochSec == otherEpochSec && toLocalTime().getNano() < other.toLocalTime().getNano()); in isBefore() 623 … (thisEpochSec == otherEpochSec && toLocalTime().getNano() > other.toLocalTime().getNano()); in isAfter() 641 toLocalTime().getNano() == other.toLocalTime().getNano(); in isEqual()
|
D | ChronoLocalDateTimeImpl.java | 233 public LocalTime toLocalTime() { in toLocalTime() method in ChronoLocalDateTimeImpl 387 return Math.addExact(amount, time.until(end.toLocalTime(), unit)); in until() 390 if (end.toLocalTime().isBefore(time)) { in until() 451 return toLocalDate().hashCode() ^ toLocalTime().hashCode(); in hashCode() 456 return toLocalDate().toString() + 'T' + toLocalTime().toString(); in toString()
|
D | AbstractChronology.java | 143 … cmp = Long.compare(dateTime1.toLocalTime().toNanoOfDay(), dateTime2.toLocalTime().toNanoOfDay()); 154 … cmp = Long.compare(dateTime1.toLocalTime().getNano(), dateTime2.toLocalTime().getNano());
|
/libcore/ojluni/src/main/java/java/time/ |
D | OffsetDateTime.java | 173 cmp = datetime1.toLocalTime().getNano() - datetime2.toLocalTime().getNano(); in compareInstant() 816 public LocalTime toLocalTime() { in toLocalTime() method in OffsetDateTime 817 return dateTime.toLocalTime(); in toLocalTime() 1546 return (R) toLocalTime(); in query() 1591 .with(NANO_OF_DAY, toLocalTime().toNanoOfDay()) in adjustInto() 1728 return OffsetTime.of(dateTime.toLocalTime(), offset); in toOffsetTime() 1819 … (thisEpochSec == otherEpochSec && toLocalTime().getNano() > other.toLocalTime().getNano()); in isAfter() 1836 … (thisEpochSec == otherEpochSec && toLocalTime().getNano() < other.toLocalTime().getNano()); in isBefore() 1851 toLocalTime().getNano() == other.toLocalTime().getNano(); in isEqual()
|
D | ZonedDateTime.java | 1130 public LocalTime toLocalTime() { in toLocalTime() method in ZonedDateTime 1131 return dateTime.toLocalTime(); in toLocalTime() 1225 return resolveLocal(LocalDateTime.of((LocalDate) adjuster, dateTime.toLocalTime())); in with()
|
D | LocalDateTime.java | 825 public LocalTime toLocalTime() { in toLocalTime() method in LocalDateTime 1823 cmp = time.compareTo(other.toLocalTime()); in compareTo0()
|
D | OffsetTime.java | 602 public LocalTime toLocalTime() { in toLocalTime() method in OffsetTime
|
D | LocalDate.java | 1769 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/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 | 49 assertEquals(LocalTime.of(15, 14, 13, 12), result.toLocalTime()); in test_zonedDateTime()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKOffsetTime.java | 213 … long diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() 278 assertEquals(test.toLocalTime(), LocalTime.of(h, m, s, n)); 507 assertEquals(a.toLocalTime(), localTime); 645 assertEquals(test.toLocalTime(), base.toLocalTime()); 695 …ime.of(LocalTime.of(23, 5), OFFSET_PONE), OffsetTime.of(OffsetTime.MAX.toLocalTime(), ZoneOffset.o… 696 …ime.of(LocalTime.of(23, 5), OFFSET_PONE), OffsetTime.of(OffsetTime.MIN.toLocalTime(), ZoneOffset.o… 1222 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() 349 assertEquals(test.toLocalTime(), expected); 1122 TEST_2007_07_15_12_30_40_987654321.toLocalTime()); 1791 assertEquals(dt.toLocalTime(), t); 1811 assertEquals(dt.toLocalTime(), t); 1855 assertEquals(dt.toLocalTime(), t, String.valueOf(i)); 2480 assertEquals(dt.toLocalTime(), t); 2500 assertEquals(dt.toLocalTime(), t); 2547 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() 315 assertEquals(test.toLocalTime(), expected); 363 …RIS_GAP_2008_03_30_02_30.toLocalDate(), TEST_PARIS_GAP_2008_03_30_02_30.toLocalTime(), ZONE_PARIS); 369 …LAP_2008_10_26_02_30.toLocalDate(), TEST_PARIS_OVERLAP_2008_10_26_02_30.toLocalTime(), ZONE_PARIS); 850 assertEquals(a.toLocalTime(), localTime); 2006 if (base.toLocalTime().equals(end.toLocalTime()) == false) {
|
D | TCKOffsetDateTime.java | 244 … long diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() 249 … diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() 302 assertEquals(test.toLocalTime(), expected);
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestUmmAlQuraChronology.java | 670 assertEquals(result.toLocalTime(), expectedTime); in test_zonedDateTime() 692 assertEquals(result.toLocalTime(), LocalTime.of(2, 7, 1, 1)); in test_Instant_zonedDateTime() 696 assertEquals(result.toLocalTime(), LocalTime.of(2, 7, 1, 1)); in test_Instant_zonedDateTime() 722 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 | 281 updateCheckConflict(cldt.toLocalTime(), Period.ZERO); in resolveFields() 346 … updateCheckConflict(INSTANT_SECONDS, SECOND_OF_DAY, (long) zdt.toLocalTime().toSecondOfDay()); in resolveInstantFields0()
|
/libcore/ojluni/src/test/java/time/test/java/util/ |
D | TestFormatter.java | 199 test(fmtStr, locale, expected, zdt.toLocalTime()); in testTime()
|