Searched refs:newDate (Results 1 – 6 of 6) sorted by relevance
/libcore/ojluni/src/main/java/java/time/ |
D | LocalDateTime.java | 509 private LocalDateTime with(LocalDate newDate, LocalTime newTime) { in with() argument 510 if (date == newDate && time == newTime) { in with() 513 return new LocalDateTime(newDate, newTime); in with() 1215 LocalDate newDate = date.plusYears(years); in plusYears() local 1216 return with(newDate, time); in plusYears() 1240 LocalDate newDate = date.plusMonths(months); in plusMonths() local 1241 return with(newDate, time); in plusMonths() 1260 LocalDate newDate = date.plusWeeks(weeks); in plusWeeks() local 1261 return with(newDate, time); in plusWeeks() 1280 LocalDate newDate = date.plusDays(days); in plusDays() local [all …]
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateTimeImpl.java | 217 private ChronoLocalDateTimeImpl<D> with(Temporal newDate, LocalTime newTime) { in with() argument 218 if (date == newDate && time == newTime) { in with() 222 D cd = ChronoLocalDateImpl.ensureValid(date.getChronology(), newDate); in with() 342 …private ChronoLocalDateTimeImpl<D> plusWithOverflow(D newDate, long hours, long minutes, long seco… in plusWithOverflow() argument 345 return with(newDate, time); in plusWithOverflow() 360 return with(newDate.plus(totDays, ChronoUnit.DAYS), newTime); in plusWithOverflow()
|
D | MinguoDate.java | 415 private MinguoDate with(LocalDate newDate) { in with() argument 416 return (newDate.equals(isoDate) ? this : new MinguoDate(newDate)); in with()
|
D | ThaiBuddhistDate.java | 415 private ThaiBuddhistDate with(LocalDate newDate) { in with() argument 416 return (newDate.equals(isoDate) ? this : new ThaiBuddhistDate(newDate)); in with()
|
D | JapaneseDate.java | 660 private JapaneseDate with(LocalDate newDate) { in with() argument 661 return (newDate.equals(isoDate) ? this : new JapaneseDate(newDate)); in with()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | SimpleDateFormatTest.java | 90 Date newDate = new Date(); in test2DigitYearStartIsCloned() local 91 sdf.set2DigitYearStart(newDate); in test2DigitYearStartIsCloned() 92 assertNotSame(sdf.get2DigitYearStart(), newDate); in test2DigitYearStartIsCloned() local 93 assertEquals(sdf.get2DigitYearStart(), newDate); in test2DigitYearStartIsCloned() local 94 newDate.setTime(0); in test2DigitYearStartIsCloned() 95 assertFalse(sdf.get2DigitYearStart().equals(newDate)); in test2DigitYearStartIsCloned()
|