/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateImpl.java | 204 case MONTHS: return plusMonths(amountToAdd); in plus() 259 abstract D plusMonths(long monthsToAdd); in plusMonths() method in ChronoLocalDateImpl 333 …act == Long.MIN_VALUE ? ((ChronoLocalDateImpl<D>)plusMonths(Long.MAX_VALUE)).plusMonths(1) : plusM… in minusMonths()
|
D | ThaiBuddhistDate.java | 314 return plusMonths(newValue - getProlepticMonth()); in with() 371 ThaiBuddhistDate plusMonths(long months) { in plusMonths() method in ThaiBuddhistDate 372 return with(isoDate.plusMonths(months)); in plusMonths()
|
D | MinguoDate.java | 314 return plusMonths(newValue - getProlepticMonth()); in with() 371 MinguoDate plusMonths(long months) { in plusMonths() method in MinguoDate 372 return with(isoDate.plusMonths(months)); in plusMonths()
|
D | HijrahDate.java | 404 case PROLEPTIC_MONTH: return plusMonths(newValue - getProlepticMonth()); in with() 529 HijrahDate plusMonths(long monthsToAdd) { in plusMonths() method in HijrahDate 594 HijrahDate calcDate = this.plusMonths(totalMonths); in until()
|
D | JapaneseDate.java | 616 JapaneseDate plusMonths(long months) { in plusMonths() method in JapaneseDate 617 return with(isoDate.plusMonths(months)); in plusMonths()
|
D | IsoChronology.java | 548 return LocalDate.of(y, 1, 1).plusMonths(months).plusDays(days); in resolveYMD()
|
/libcore/ojluni/src/main/java/java/time/ |
D | YearMonth.java | 682 case PROLEPTIC_MONTH: return plusMonths(newValue - getProlepticMonth()); in with() 802 case MONTHS: return plusMonths(amountToAdd); in plus() 840 public YearMonth plusMonths(long monthsToAdd) { in plusMonths() method in YearMonth 924 …return (monthsToSubtract == Long.MIN_VALUE ? plusMonths(Long.MAX_VALUE).plusMonths(1) : plusMonths… in minusMonths()
|
D | LocalDate.java | 1028 case PROLEPTIC_MONTH: return plusMonths(newValue - getProlepticMonth()); in with() 1140 return plusMonths(periodToAdd.toTotalMonths()).plusDays(periodToAdd.getDays()); in plus() 1234 case MONTHS: return plusMonths(amountToAdd); in plus() 1295 public LocalDate plusMonths(long monthsToAdd) { in plusMonths() method in LocalDate 1449 …return (monthsToSubtract == Long.MIN_VALUE ? plusMonths(Long.MAX_VALUE).plusMonths(1) : plusMonths… in minusMonths() 1662 LocalDate calcDate = this.plusMonths(totalMonths); in until()
|
D | Period.java | 660 public Period plusMonths(long monthsToAdd) { in plusMonths() method in Period 747 …return (monthsToSubtract == Long.MIN_VALUE ? plusMonths(Long.MAX_VALUE).plusMonths(1) : plusMonths… in minusMonths()
|
D | OffsetDateTime.java | 1234 public OffsetDateTime plusMonths(long months) { in plusMonths() method in OffsetDateTime 1235 return with(dateTime.plusMonths(months), offset); in plusMonths() 1424 …return (months == Long.MIN_VALUE ? plusMonths(Long.MAX_VALUE).plusMonths(1) : plusMonths(-months)); in minusMonths()
|
D | ZonedDateTime.java | 1645 public ZonedDateTime plusMonths(long months) { in plusMonths() method in ZonedDateTime 1646 return resolveLocal(dateTime.plusMonths(months)); in plusMonths() 1887 …return (months == Long.MIN_VALUE ? plusMonths(Long.MAX_VALUE).plusMonths(1) : plusMonths(-months)); in minusMonths()
|
D | LocalDateTime.java | 1239 public LocalDateTime plusMonths(long months) { in plusMonths() method in LocalDateTime 1240 LocalDate newDate = date.plusMonths(months); in plusMonths() 1438 …return (months == Long.MIN_VALUE ? plusMonths(Long.MAX_VALUE).plusMonths(1) : plusMonths(-months)); in minusMonths()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | CopticDate.java | 265 case MONTHS: return plusMonths(amountToAdd); in plus() 278 return plusMonths(Math.multiplyExact(years, 13)); in plusYears() 281 private CopticDate plusMonths(long months) { in plusMonths() method in CopticDate 316 CopticDate calcDate = this.plusMonths(totalMonths); in until()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKYearMonth.java | 682 assertEquals(test.plusMonths(1), YearMonth.of(2008, 7)); in test_plusMonths_long() 688 assertEquals(test.plusMonths(0), test); in test_plusMonths_long_noChange_equal() 694 assertEquals(test.plusMonths(7), YearMonth.of(2009, 1)); in test_plusMonths_long_overYears() 700 assertEquals(test.plusMonths(-1), YearMonth.of(2008, 5)); in test_plusMonths_long_negative() 706 assertEquals(test.plusMonths(-6), YearMonth.of(2007, 12)); in test_plusMonths_long_negativeOverYear() 713 …assertEquals(test.plusMonths(months), YearMonth.of((int) (-40L + months / 12), 6 + (int) (months %… in test_plusMonths_long_big() 719 test.plusMonths(1); in test_plusMonths_long_invalidTooLarge() 725 test.plusMonths(Long.MAX_VALUE); in test_plusMonths_long_invalidTooLargeMaxAddMax() 731 test.plusMonths(Long.MIN_VALUE); in test_plusMonths_long_invalidTooLargeMaxAddMin() 737 test.plusMonths(-1); in test_plusMonths_long_invalidTooSmall() [all …]
|
D | TCKLocalDate.java | 1103 LocalDate t = TEST_2007_07_15.plusMonths(1); 1109 LocalDate t = TEST_2007_07_15.plusMonths(25); 1115 LocalDate t = TEST_2007_07_15.plusMonths(-1); 1121 LocalDate t = TEST_2007_07_15.plusMonths(-7); 1127 LocalDate t = TEST_2007_07_15.plusMonths(-31); 1133 LocalDate t = LocalDate.of(2008, 2, 29).plusMonths(12); 1140 LocalDate t = LocalDate.of(2007, 3, 31).plusMonths(1); 1148 LocalDate test = LocalDate.of(-40, 6, 1).plusMonths(months); 1154 LocalDate.of(Year.MAX_VALUE, 12, 1).plusMonths(1); 1160 test.plusMonths(Long.MAX_VALUE); [all …]
|
D | TCKPeriod.java | 706 assertPeriod(Period.of(1, 2, 3).plusMonths(0), 1, 2, 3); in test_plusMonths() 707 assertPeriod(Period.of(1, 2, 3).plusMonths(10), 1, 12, 3); in test_plusMonths() 708 assertPeriod(Period.of(1, 2, 3).plusMonths(-10), 1, -8, 3); in test_plusMonths() 709 assertPeriod(Period.of(1, 2, 3).plusMonths(-2), 1, 0, 3); in test_plusMonths() 720 test.plusMonths(1); in test_plusMonths_overflowTooBig() 726 test.plusMonths(-1); in test_plusMonths_overflowTooSmall()
|
D | TCKLocalDateTime.java | 1476 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusMonths(1); 1482 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusMonths(25); 1488 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusMonths(-1); 1494 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusMonths(-7); 1500 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusMonths(-31); 1506 LocalDateTime t = createDateMidnight(2008, 2, 29).plusMonths(12); 1512 LocalDateTime t = createDateMidnight(2007, 3, 31).plusMonths(1); 1518 createDateMidnight(Year.MAX_VALUE, 12, 1).plusMonths(1); 1523 createDateMidnight(Year.MIN_VALUE, 1, 1).plusMonths(-1);
|
D | TCKZonedDateTime.java | 1731 ZonedDateTime test = base.plusMonths(1); 1732 assertEquals(test, ZonedDateTime.of(ldt.plusMonths(1), ZONE_0100)); 1739 ZonedDateTime test = base.plusMonths(0);
|
D | TCKOffsetDateTime.java | 968 OffsetDateTime test = base.plusMonths(1);
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestOffsetDateTime.java | 216 OffsetDateTime test = base.plusMonths(0); in test_plusMonths_zero()
|
D | TestLocalDate.java | 170 LocalDate t = TEST_2007_07_15.plusMonths(0); in test_plusMonths_long_noChange_same()
|
D | TestLocalDateTime.java | 248 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusMonths(0); in test_plusMonths_int_noChange()
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | OffsetDateTime.java | 285 public java.time.OffsetDateTime plusMonths(long months) { in plusMonths() method in OffsetDateTime
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | IsoFields.java | 355 … date = LocalDate.of(y, 1, 1).plusMonths(Math.multiplyExact(Math.subtractExact(qoyLong, 1), 3)); in resolve()
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKZoneRules.java | 287 zdt = zdt.plusMonths(6); in test_London_getStandardOffset() 669 zdt = zdt.plusMonths(6); in test_Paris_getStandardOffset() 869 dateTime = dateTime.plusMonths(6); in test_NewYork_getStandardOffset()
|