Home
last modified time | relevance | path

Searched refs:newDayOfMonth (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/test/java/time/test/java/time/
DTestLocalDate.java97 int newDayOfMonth = date.getDayOfMonth() + 1; in next() local
98 if (newDayOfMonth <= date.getMonth().length(isIsoLeap(date.getYear()))) { in next()
99 return date.withDayOfMonth(newDayOfMonth); in next()
109 int newDayOfMonth = date.getDayOfMonth() - 1; in previous() local
110 if (newDayOfMonth > 0) { in previous()
111 return date.withDayOfMonth(newDayOfMonth); in previous()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalDate.java458 int newDayOfMonth = date.getDayOfMonth() + 1;
459 if (newDayOfMonth <= date.getMonth().length(isIsoLeap(date.getYear()))) {
460 return date.withDayOfMonth(newDayOfMonth);
470 int newDayOfMonth = date.getDayOfMonth() - 1;
471 if (newDayOfMonth > 0) {
472 return date.withDayOfMonth(newDayOfMonth);