n++;
}
}
return d1;
} else if (unit == TimeUnit.WEEKS) {
d1 = d1.adjust(new Period(n, unit));
return adjust(d1, c);
} else {
d1 = d1.adjust(new Period(n, unit));
if (endOfMonth && (unit == TimeUnit.MONTHS || unit == TimeUnit.YEARS) && isEndOfMonth(d1)) {
return getEndOfMonth(d1);