/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestChronoUnit.java | 119 assertEquals(YEARS.between(start.atTime(12, 30), end.atTime(12, 30)), expected); in test_yearsBetween_LocalDateTimeSameTime() 125 assertEquals(YEARS.between(start.atTime(12, 30), end.atTime(12, 31)), expected); in test_yearsBetween_LocalDateTimeLaterTime() 127 assertEquals(YEARS.between(start.atTime(12, 30), end.atTime(12, 29)), expected); in test_yearsBetween_LocalDateTimeLaterTime() 192 assertEquals(MONTHS.between(start.atTime(12, 30), end.atTime(12, 30)), expected); in test_monthsBetween_LocalDateTimeSameTime() 198 assertEquals(MONTHS.between(start.atTime(12, 30), end.atTime(12, 31)), expected); in test_monthsBetween_LocalDateTimeLaterTime() 200 assertEquals(MONTHS.between(start.atTime(12, 30), end.atTime(12, 29)), expected); in test_monthsBetween_LocalDateTimeLaterTime() 302 assertEquals(DAYS.between(start.atTime(12, 30), end.atTime(12, 30)), expected); in test_daysBetween_LocalDateTimeSameTime() 308 assertEquals(DAYS.between(start.atTime(12, 30), end.atTime(12, 31)), expected); in test_daysBetween_LocalDateTimeLaterTime() 310 assertEquals(DAYS.between(start.atTime(12, 30), end.atTime(12, 29)), expected); in test_daysBetween_LocalDateTimeLaterTime()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKChronoLocalDateTime.java | 116 ChronoLocalDateTime<?> cdt = chrono.date(refDate).atTime(LocalTime.NOON); in test_badWithAdjusterChrono() 119 ChronoLocalDateTime<?> cdt2 = chrono2.date(refDate).atTime(LocalTime.NOON); in test_badWithAdjusterChrono() 140 ChronoLocalDateTime<?> cdt = chrono.date(refDate).atTime(LocalTime.NOON); in test_badPlusAdjusterChrono() 143 ChronoLocalDateTime<?> cdt2 = chrono2.date(refDate).atTime(LocalTime.NOON); in test_badPlusAdjusterChrono() 164 ChronoLocalDateTime<?> cdt = chrono.date(refDate).atTime(LocalTime.NOON); in test_badMinusAdjusterChrono() 167 ChronoLocalDateTime<?> cdt2 = chrono2.date(refDate).atTime(LocalTime.NOON); in test_badMinusAdjusterChrono() 188 ChronoLocalDateTime<?> cdt = chrono.date(refDate).atTime(LocalTime.NOON); in test_badPlusTemporalUnitChrono() 191 ChronoLocalDateTime<?> cdt2 = chrono2.date(refDate).atTime(LocalTime.NOON); in test_badPlusTemporalUnitChrono() 212 ChronoLocalDateTime<?> cdt = chrono.date(refDate).atTime(LocalTime.NOON); in test_badMinusTemporalUnitChrono() 215 ChronoLocalDateTime<?> cdt2 = chrono2.date(refDate).atTime(LocalTime.NOON); in test_badMinusTemporalUnitChrono() [all …]
|
D | TCKChronoLocalDate.java | 317 ChronoLocalDate test2 = ChronoLocalDate.from(date.atTime(LocalTime.of(12, 30))); in test_from_TemporalAccessor() 319 …ChronoLocalDate test3 = ChronoLocalDate.from(date.atTime(LocalTime.of(12, 30)).atZone(ZoneOffset.U… in test_from_TemporalAccessor()
|
D | TCKMinguoChronology.java | 209 ChronoLocalDateTime<MinguoDate> hdt = hd.atTime(LocalTime.NOON); in test_MinguoDate() 229 ChronoLocalDateTime<MinguoDate> h3 = h2.atTime(LocalTime.NOON); in test_MinguoChrono()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/ |
D | TCKChronoLocalDateTimeSerialization.java | 98 LocalDateTime ref = LocalDate.of(2013, 1, 5).atTime(12, 1, 2, 3); in test_ChronoLocalDateTimeSerialization() 99 ChronoLocalDateTime<?> original = chrono.date(ref).atTime(ref.toLocalTime()); in test_ChronoLocalDateTimeSerialization()
|
D | TCKChronoZonedDateTimeSerialization.java | 98 … ZonedDateTime ref = LocalDate.of(2013, 1, 5).atTime(12, 1, 2, 3).atZone(ZoneId.of("GMT+01:23")); in test_ChronoZonedDateTimeSerialization() 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 | TCKLocalDate.java | 1907 assertEquals(t.atTime(LocalTime.of(11, 30)), LocalDateTime.of(2008, 6, 30, 11, 30)); 1913 t.atTime((LocalTime) null); 1920 assertEquals(t.atTime(11, 30), LocalDateTime.of(2008, 6, 30, 11, 30)); 1926 t.atTime(-1, 30); 1932 t.atTime(24, 30); 1938 t.atTime(11, -1); 1944 t.atTime(11, 60); 1950 assertEquals(t.atTime(11, 30, 40), LocalDateTime.of(2008, 6, 30, 11, 30, 40)); 1956 t.atTime(-1, 30, 40); 1962 t.atTime(24, 30, 40); [all …]
|
D | TCKOffsetTime.java | 1222 return DATE.atTime(ot.toLocalTime()).toInstant(ot.getOffset());
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalDate.java | 1699 public LocalDateTime atTime(LocalTime time) { in atTime() method in LocalDate 1717 public LocalDateTime atTime(int hour, int minute) { in atTime() method in LocalDate 1718 return atTime(LocalTime.of(hour, minute)); in atTime() 1736 public LocalDateTime atTime(int hour, int minute, int second) { in atTime() method in LocalDate 1737 return atTime(LocalTime.of(hour, minute, second)); in atTime() 1755 public LocalDateTime atTime(int hour, int minute, int second, int nanoOfSecond) { in atTime() method in LocalDate 1756 return atTime(LocalTime.of(hour, minute, second, nanoOfSecond)); in atTime() 1768 public OffsetDateTime atTime(OffsetTime time) { in atTime() method in LocalDate 1809 LocalDateTime ldt = atTime(LocalTime.MIDNIGHT); in atStartOfDay()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ThaiBuddhistDate.java | 421 public final ChronoLocalDateTime<ThaiBuddhistDate> atTime(LocalTime localTime) { in atTime() method in ThaiBuddhistDate 422 return (ChronoLocalDateTime<ThaiBuddhistDate>) super.atTime(localTime); in atTime()
|
D | MinguoDate.java | 421 public final ChronoLocalDateTime<MinguoDate> atTime(LocalTime localTime) { in atTime() method in MinguoDate 422 return (ChronoLocalDateTime<MinguoDate>)super.atTime(localTime); in atTime()
|
D | HijrahDate.java | 582 public final ChronoLocalDateTime<HijrahDate> atTime(LocalTime localTime) { in atTime() method in HijrahDate 583 return (ChronoLocalDateTime<HijrahDate>)super.atTime(localTime); in atTime()
|
D | Chronology.java | 472 return date(temporal).atTime(LocalTime.from(temporal)); in localDateTime()
|
D | JapaneseDate.java | 666 public final ChronoLocalDateTime<JapaneseDate> atTime(LocalTime localTime) { in atTime() method in JapaneseDate 667 return (ChronoLocalDateTime<JapaneseDate>)super.atTime(localTime); in atTime()
|
D | ChronoLocalDate.java | 653 default ChronoLocalDateTime<?> atTime(LocalTime localTime) { in atTime() method
|
D | ChronoLocalDateTimeImpl.java | 434 return date.atTime(time); in readExternal()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | HijrahDateTest.java | 95 assertEquals(0, hijrahNow.until(isoNow.atTime(10, 10), ChronoUnit.DAYS)); in until_isoDates()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeParseResolver.java | 1036 …er f = new DateTimeFormatterBuilder().appendValue(new ResolvingField(mdt.atTime(LocalTime.NOON))).… in test_fieldResolvesToChronoLocalDateTime_overrideChrono_matches() 1046 … ChronoLocalDateTime<?> cldt = ThaiBuddhistChronology.INSTANCE.dateNow().atTime(LocalTime.NOON); in test_fieldResolvesToChronoLocalDateTime_noOverrideChrono_wrongChrono() 1053 … ChronoLocalDateTime<?> cldt = ThaiBuddhistChronology.INSTANCE.dateNow().atTime(LocalTime.NOON); in test_fieldResolvesToChronoLocalDateTime_overrideChrono_wrongChrono() 1074 ChronoZonedDateTime<MinguoDate> mzdt = mdt.atTime(LocalTime.NOON).atZone(EUROPE_PARIS); in test_fieldResolvesToChronoZonedDateTime_overrideChrono_matches() 1086 …ChronoZonedDateTime<?> cldt = ThaiBuddhistChronology.INSTANCE.dateNow().atTime(LocalTime.NOON).atZ… in test_fieldResolvesToChronoZonedDateTime_noOverrideChrono_wrongChrono() 1093 …ChronoZonedDateTime<?> cldt = ThaiBuddhistChronology.INSTANCE.dateNow().atTime(LocalTime.NOON).atZ… in test_fieldResolvesToChronoZonedDateTime_overrideChrono_wrongChrono()
|
/libcore/ojluni/src/test/java/time/test/java/util/ |
D | TestFormatter.java | 94 ChronoLocalDateTime<?> ldt0 = now.atTime(LocalTime.now()); in test()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestUmmAlQuraChronology.java | 461 ChronoLocalDateTime<HijrahDate> hdt = hd.atTime(LocalTime.NOON); in test_formatterOfLocalizedDate()
|