Home
last modified time | relevance | path

Searched refs:atTime (Results 1 – 22 of 22) sorted by relevance

/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestChronoUnit.java119 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/
DTCKChronoLocalDateTime.java116 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 …]
DTCKChronoZonedDateTime.java118 … ChronoZonedDateTime<?> czdt = chrono.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badWithAdjusterChrono()
121 …ChronoZonedDateTime<?> czdt2 = chrono2.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badWithAdjusterChrono()
141 … ChronoZonedDateTime<?> czdt = chrono.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badPlusAdjusterChrono()
144 …ChronoZonedDateTime<?> czdt2 = chrono2.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badPlusAdjusterChrono()
165 … ChronoZonedDateTime<?> czdt = chrono.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badMinusAdjusterChrono()
168 …ChronoZonedDateTime<?> czdt2 = chrono2.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badMinusAdjusterChrono()
189 … ChronoZonedDateTime<?> czdt = chrono.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badPlusTemporalUnitChrono()
192 …ChronoZonedDateTime<?> czdt2 = chrono2.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badPlusTemporalUnitChrono()
213 … ChronoZonedDateTime<?> czdt = chrono.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badMinusTemporalUnitChrono()
216 …ChronoZonedDateTime<?> czdt2 = chrono2.date(refDate).atTime(LocalTime.NOON).atZone(ZoneOffset.UTC); in test_badMinusTemporalUnitChrono()
[all …]
DTCKChronoLocalDate.java317 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()
DTCKMinguoChronology.java209 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/
DTCKChronoLocalDateTimeSerialization.java98 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()
DTCKChronoZonedDateTimeSerialization.java98 … 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/
DTCKLocalDate.java1907 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 …]
DTCKOffsetTime.java1222 return DATE.atTime(ot.toLocalTime()).toInstant(ot.getOffset());
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestExampleCode.java171 ChronoLocalDateTime<HijrahDate> hdt = hd2.atTime(LocalTime.MIDNIGHT); in HijrahExample1()
182 ChronoLocalDateTime<?> cldt = date.atTime(LocalTime.NOON); in test_unknownChronologyWithDateTime()
216 return (ChronoLocalDateTime<D>) date.plus(1, ChronoUnit.DAYS).atTime(LocalTime.of(12, 0)); in tomorrowNoon()
DTestUmmAlQuraChronology.java461 ChronoLocalDateTime<HijrahDate> hdt = hd.atTime(LocalTime.NOON); in test_formatterOfLocalizedDate()
/libcore/ojluni/src/main/java/java/time/
DLocalDate.java1699 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/
DThaiBuddhistDate.java421 public final ChronoLocalDateTime<ThaiBuddhistDate> atTime(LocalTime localTime) { in atTime() method in ThaiBuddhistDate
422 return (ChronoLocalDateTime<ThaiBuddhistDate>) super.atTime(localTime); in atTime()
DMinguoDate.java421 public final ChronoLocalDateTime<MinguoDate> atTime(LocalTime localTime) { in atTime() method in MinguoDate
422 return (ChronoLocalDateTime<MinguoDate>)super.atTime(localTime); in atTime()
DHijrahDate.java582 public final ChronoLocalDateTime<HijrahDate> atTime(LocalTime localTime) { in atTime() method in HijrahDate
583 return (ChronoLocalDateTime<HijrahDate>)super.atTime(localTime); in atTime()
DChronology.java472 return date(temporal).atTime(LocalTime.from(temporal)); in localDateTime()
DJapaneseDate.java666 public final ChronoLocalDateTime<JapaneseDate> atTime(LocalTime localTime) { in atTime() method in JapaneseDate
667 return (ChronoLocalDateTime<JapaneseDate>)super.atTime(localTime); in atTime()
DChronoLocalDate.java653 default ChronoLocalDateTime<?> atTime(LocalTime localTime) { in atTime() method
DChronoLocalDateTimeImpl.java434 return date.atTime(time); in readExternal()
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java590 long instant = date.atTime(time).atZone(zone).getLong(ChronoField.INSTANT_SECONDS); in resolveInstant()
596 … long instant = date.atTime(time).atZone(offset).getLong(ChronoField.INSTANT_SECONDS); in resolveInstant()
629 crossCheck(date.atTime(time)); in crossCheck()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeParseResolver.java1036 …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/
DTestFormatter.java94 ChronoLocalDateTime<?> ldt0 = now.atTime(LocalTime.now()); in test()