Home
last modified time | relevance | path

Searched refs:plusMonths (Results 1 – 25 of 25) sorted by relevance

/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDateImpl.java204 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()
DThaiBuddhistDate.java314 return plusMonths(newValue - getProlepticMonth()); in with()
371 ThaiBuddhistDate plusMonths(long months) { in plusMonths() method in ThaiBuddhistDate
372 return with(isoDate.plusMonths(months)); in plusMonths()
DMinguoDate.java314 return plusMonths(newValue - getProlepticMonth()); in with()
371 MinguoDate plusMonths(long months) { in plusMonths() method in MinguoDate
372 return with(isoDate.plusMonths(months)); in plusMonths()
DHijrahDate.java404 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()
DJapaneseDate.java616 JapaneseDate plusMonths(long months) { in plusMonths() method in JapaneseDate
617 return with(isoDate.plusMonths(months)); in plusMonths()
DIsoChronology.java548 return LocalDate.of(y, 1, 1).plusMonths(months).plusDays(days); in resolveYMD()
/libcore/ojluni/src/main/java/java/time/
DYearMonth.java682 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()
DLocalDate.java1028 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()
DPeriod.java660 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()
DOffsetDateTime.java1234 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()
DZonedDateTime.java1645 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()
DLocalDateTime.java1239 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/
DCopticDate.java265 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/
DTCKYearMonth.java682 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 …]
DTCKLocalDate.java1103 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 …]
DTCKPeriod.java706 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()
DTCKLocalDateTime.java1476 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);
DTCKZonedDateTime.java1731 ZonedDateTime test = base.plusMonths(1);
1732 assertEquals(test, ZonedDateTime.of(ldt.plusMonths(1), ZONE_0100));
1739 ZonedDateTime test = base.plusMonths(0);
DTCKOffsetDateTime.java968 OffsetDateTime test = base.plusMonths(1);
/libcore/ojluni/src/test/java/time/test/java/time/
DTestOffsetDateTime.java216 OffsetDateTime test = base.plusMonths(0); in test_plusMonths_zero()
DTestLocalDate.java170 LocalDate t = TEST_2007_07_15.plusMonths(0); in test_plusMonths_long_noChange_same()
DTestLocalDateTime.java248 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusMonths(0); in test_plusMonths_int_noChange()
/libcore/ojluni/annotations/hiddenapi/java/time/
DOffsetDateTime.java285 public java.time.OffsetDateTime plusMonths(long months) { in plusMonths() method in OffsetDateTime
/libcore/ojluni/src/main/java/java/time/temporal/
DIsoFields.java355 … 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/
DTCKZoneRules.java287 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()