Searched refs:newYear (Results 1 – 4 of 4) sorted by relevance
/libcore/ojluni/src/main/java/java/time/ |
D | YearMonth.java | 312 private YearMonth with(int newYear, int newMonth) { in with() argument 313 if (year == newYear && month == newMonth) { in with() 316 return new YearMonth(newYear, newMonth); in with() 827 int newYear = YEAR.checkValidIntValue(year + yearsToAdd); // safe overflow in plusYears() local 828 return with(newYear, month); in plusYears() 846 int newYear = YEAR.checkValidIntValue(Math.floorDiv(calcMonths, 12)); in plusMonths() local 848 return with(newYear, newMonth); in plusMonths()
|
D | LocalDate.java | 1271 int newYear = YEAR.checkValidIntValue(year + yearsToAdd); // safe overflow in plusYears() local 1272 return resolvePreviousValid(newYear, month, day); in plusYears() 1301 int newYear = YEAR.checkValidIntValue(Math.floorDiv(calcMonths, 12)); in plusMonths() local 1303 return resolvePreviousValid(newYear, newMonth, day); in plusMonths()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | HijrahDate.java | 524 int newYear = Math.addExact(this.prolepticYear, (int)years); in plusYears() local 525 return resolvePreviousValid(newYear, monthOfYear, dayOfMonth); in plusYears() 535 int newYear = chrono.checkValidYear(Math.floorDiv(calcMonths, 12L)); in plusMonths() local 537 return resolvePreviousValid(newYear, newMonth, dayOfMonth); in plusMonths()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | CopticDate.java | 287 int newYear = Math.toIntExact(Math.floorDiv(calcEm, 13)); in plusMonths() local 289 return resolvePreviousValid(newYear, newMonth, day); in plusMonths()
|