/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateImpl.java | 202 case DAYS: return plusDays(amountToAdd); in plus() 203 case WEEKS: return plusDays(Math.multiplyExact(amountToAdd, 7)); in plus() 277 return plusDays(Math.multiplyExact(weeksToAdd, 7)); in plusWeeks() 291 abstract D plusDays(long daysToAdd); in plusDays() method in ChronoLocalDateImpl 371 …btract == Long.MIN_VALUE ? ((ChronoLocalDateImpl<D>)plusDays(Long.MAX_VALUE)).plusDays(1) : plusDa… in minusDays()
|
D | HijrahDate.java | 395 case DAY_OF_WEEK: return plusDays(newValue - getDayOfWeek()); in with() 396 …case ALIGNED_DAY_OF_WEEK_IN_MONTH: return plusDays(newValue - getLong(ALIGNED_DAY_OF_WEEK_IN_MONTH… in with() 397 …case ALIGNED_DAY_OF_WEEK_IN_YEAR: return plusDays(newValue - getLong(ALIGNED_DAY_OF_WEEK_IN_YEAR)); in with() 399 … case DAY_OF_YEAR: return plusDays(Math.min(nvalue, lengthOfYear()) - getDayOfYear()); in with() 401 … case ALIGNED_WEEK_OF_MONTH: return plusDays((newValue - getLong(ALIGNED_WEEK_OF_MONTH)) * 7); in with() 402 … case ALIGNED_WEEK_OF_YEAR: return plusDays((newValue - getLong(ALIGNED_WEEK_OF_YEAR)) * 7); in with() 546 HijrahDate plusDays(long days) { in plusDays() method in HijrahDate
|
D | ChronoLocalDateTimeImpl.java | 309 …case MICROS: return plusDays(amountToAdd / MICROS_PER_DAY).plusNanos((amountToAdd % MICROS_PER_DAY… in plus() 310 …case MILLIS: return plusDays(amountToAdd / MILLIS_PER_DAY).plusNanos((amountToAdd % MILLIS_PER_DAY… in plus() 314 …case HALF_DAYS: return plusDays(amountToAdd / 256).plusHours((amountToAdd % 256) * 12); // no ove… in plus() 321 private ChronoLocalDateTimeImpl<D> plusDays(long days) { in plusDays() method in ChronoLocalDateTimeImpl
|
D | ThaiBuddhistDate.java | 381 ThaiBuddhistDate plusDays(long days) { in plusDays() method in ThaiBuddhistDate 382 return with(isoDate.plusDays(days)); in plusDays()
|
D | MinguoDate.java | 381 MinguoDate plusDays(long days) { in plusDays() method in MinguoDate 382 return with(isoDate.plusDays(days)); in plusDays()
|
D | JapaneseDate.java | 622 JapaneseDate plusDays(long days) { in plusDays() method in JapaneseDate 623 return with(isoDate.plusDays(days)); in plusDays()
|
D | IsoChronology.java | 548 return LocalDate.of(y, 1, 1).plusMonths(months).plusDays(days); in resolveYMD()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | CopticDate.java | 239 case DAY_OF_WEEK: return plusDays(newValue - get(ChronoField.DAY_OF_WEEK)); in with() 240 …case ALIGNED_DAY_OF_WEEK_IN_MONTH: return plusDays(newValue - getLong(ALIGNED_DAY_OF_WEEK_IN_MONTH… in with() 241 …case ALIGNED_DAY_OF_WEEK_IN_YEAR: return plusDays(newValue - getLong(ALIGNED_DAY_OF_WEEK_IN_YEAR)); in with() 245 … case ALIGNED_WEEK_OF_MONTH: return plusDays((newValue - getLong(ALIGNED_WEEK_OF_MONTH)) * 7); in with() 246 … case ALIGNED_WEEK_OF_YEAR: return plusDays((newValue - getLong(ALIGNED_WEEK_OF_YEAR)) * 7); in with() 263 case DAYS: return plusDays(amountToAdd); in plus() 264 case WEEKS: return plusDays(Math.multiplyExact(amountToAdd, 7)); in plus() 292 private CopticDate plusDays(long days) { in plusDays() method in CopticDate
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKWeekFields.java | 158 day = day.plusDays(1); in test_dayOfWeekField() 186 LocalDate result = day1.plusDays(offset); in test_weekOfMonthField() 191 day = day.plusDays(1); in test_weekOfMonthField() 217 LocalDate result = day1.plusDays(offset); in test_weekOfYearField() 222 day = day.plusDays(1); in test_weekOfYearField() 259 LocalDate result = day1.plusDays(weekStart); in test_weekOfWeekBasedYearField() 264 day = day.plusDays(1); in test_weekOfWeekBasedYearField() 301 day = day.plusDays(1); in test_fieldRanges() 395 date = date.plusDays(1); in test_parse_resolve_localizedWom() 419 date = date.plusDays(1); in test_parse_resolve_localizedWom_lenient() [all …]
|
D | TCKIsoFields.java | 458 LocalDate firstDayOfWeekBasedYear = date.plusDays(14).withDayOfYear(1); in test_loop() 469 date = date.plusDays(1); in test_loop()
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestIsoWeekFields.java | 156 date = date.plusDays(1); in test_getFrom() 187 date = date.plusDays(1); in test_adjustInto_dow() 216 date = date.plusDays(1); in test_adjustInto_week() 244 date = date.plusDays(1); in test_adjustInto_wby() 272 date = date.plusDays(1); in test_addTo_weekBasedYears()
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalDateTime.java | 1181 …case MICROS: return plusDays(amountToAdd / MICROS_PER_DAY).plusNanos((amountToAdd % MICROS_PER_DAY… in plus() 1182 …case MILLIS: return plusDays(amountToAdd / MILLIS_PER_DAY).plusNanos((amountToAdd % MILLIS_PER_DAY… in plus() 1186 …case HALF_DAYS: return plusDays(amountToAdd / 256).plusHours((amountToAdd % 256) * 12); // no ove… in plus() 1279 public LocalDateTime plusDays(long days) { in plusDays() method in LocalDateTime 1280 LocalDate newDate = date.plusDays(days); in plusDays() 1476 return (days == Long.MIN_VALUE ? plusDays(Long.MAX_VALUE).plusDays(1) : plusDays(-days)); in minusDays() 1565 return with(newDate.plusDays(totDays), newTime); in plusWithOverflow() 1727 endDate = endDate.plusDays(1); in until()
|
D | LocalDate.java | 1019 case DAY_OF_WEEK: return plusDays(newValue - getDayOfWeek().getValue()); in with() 1020 …case ALIGNED_DAY_OF_WEEK_IN_MONTH: return plusDays(newValue - getLong(ALIGNED_DAY_OF_WEEK_IN_MONTH… in with() 1021 …case ALIGNED_DAY_OF_WEEK_IN_YEAR: return plusDays(newValue - getLong(ALIGNED_DAY_OF_WEEK_IN_YEAR)); in with() 1140 return plusMonths(periodToAdd.toTotalMonths()).plusDays(periodToAdd.getDays()); in plus() 1232 case DAYS: return plusDays(amountToAdd); in plus() 1322 return plusDays(Math.multiplyExact(weeksToAdd, 7)); in plusWeeks() 1340 public LocalDate plusDays(long daysToAdd) { in plusDays() method in LocalDate 1487 …return (daysToSubtract == Long.MIN_VALUE ? plusDays(Long.MAX_VALUE).plusDays(1) : plusDays(-daysTo… in minusDays()
|
D | Period.java | 680 public Period plusDays(long daysToAdd) { in plusDays() method in Period 764 …return (daysToSubtract == Long.MIN_VALUE ? plusDays(Long.MAX_VALUE).plusDays(1) : plusDays(-daysTo… in minusDays()
|
D | OffsetDateTime.java | 1272 public OffsetDateTime plusDays(long days) { in plusDays() method in OffsetDateTime 1273 return with(dateTime.plusDays(days), offset); in plusDays() 1462 return (days == Long.MIN_VALUE ? plusDays(Long.MAX_VALUE).plusDays(1) : plusDays(-days)); in minusDays()
|
D | Duration.java | 726 public Duration plusDays(long daysToAdd) { in plusDays() method in Duration 868 …return (daysToSubtract == Long.MIN_VALUE ? plusDays(Long.MAX_VALUE).plusDays(1) : plusDays(-daysTo… in minusDays()
|
D | ZonedDateTime.java | 1689 public ZonedDateTime plusDays(long days) { in plusDays() method in ZonedDateTime 1690 return resolveLocal(dateTime.plusDays(days)); in plusDays() 1931 return (days == Long.MIN_VALUE ? plusDays(Long.MAX_VALUE).plusDays(1) : plusDays(-days)); in minusDays()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestLocalDate.java | 264 LocalDate t = reference.plusDays(days).plusDays(-days); in test_plusDays_symmetry() 267 t = reference.plusDays(-days).plusDays(days); in test_plusDays_symmetry() 274 LocalDate t = TEST_2007_07_15.plusDays(0); in test_plusDays_noChange_same()
|
D | TestOffsetDateTime_instants.java | 117 expected = expected.plusDays(1); in factory_ofInstant_allDaysInCycle() 246 expected = expected.plusDays(1); in doTest_factory_ofInstant_all()
|
D | TestOffsetDateTime.java | 230 OffsetDateTime test = base.plusDays(0); in test_plusDays_zero()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalDateTime.java | 1674 LocalDateTime t = reference.plusDays(days).plusDays(-days); 1677 t = reference.plusDays(-days).plusDays(days); 1684 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusDays(1); 1690 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusDays(62); 1696 LocalDateTime t = LocalDateTime.of(2006, 7, 14, 12, 30, 40, 987654321).plusDays(366); 1702 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusYears(-1).plusDays(365 + 366); 1708 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusDays(-1); 1714 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusDays(-196); 1720 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusDays(-730); 1726 LocalDateTime t = createDateMidnight(Year.MAX_VALUE, 12, 30).plusDays(1); [all …]
|
D | TCKLocalDate.java | 1252 LocalDate t = TEST_2007_07_15.plusDays(1); 1258 LocalDate t = TEST_2007_07_15.plusDays(62); 1264 LocalDate t = LocalDate.of(2006, 7, 14).plusDays(366); 1270 LocalDate t = TEST_2007_07_15.plusYears(-1).plusDays(365 + 366); 1276 LocalDate t = TEST_2007_07_15.plusDays(-1); 1282 LocalDate t = TEST_2007_07_15.plusDays(-196); 1288 LocalDate t = TEST_2007_07_15.plusDays(-730); 1294 LocalDate t = LocalDate.of(Year.MAX_VALUE, 12, 30).plusDays(1); 1301 LocalDate t = LocalDate.of(Year.MIN_VALUE, 1, 2).plusDays(-1); 1308 LocalDate.of(Year.MAX_VALUE, 12, 31).plusDays(1); [all …]
|
D | TCKPeriod.java | 734 assertPeriod(Period.of(1, 2, 3).plusDays(0), 1, 2, 3); in test_plusDays() 735 assertPeriod(Period.of(1, 2, 3).plusDays(10), 1, 2, 13); in test_plusDays() 736 assertPeriod(Period.of(1, 2, 3).plusDays(-10), 1, 2, -7); in test_plusDays() 737 assertPeriod(Period.of(1, 2, 3).plusDays(-3), 1, 2, 0); in test_plusDays() 748 test.plusDays(1); in test_plusDays_overflowTooBig() 754 test.plusDays(-1); in test_plusDays_overflowTooSmall()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | IsoFields.java | 372 return date.plusDays(doq); in resolve() 548 resolved = resolved.plusDays(days); in adjustInto()
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | ZoneOffsetTransitionRule.java | 496 date = date.plusDays(1); in createTransition()
|