nextMonth method
Implementation
Solar nextMonth(int months) {
SolarMonth month = SolarMonth.fromYm(_year, _month).next(months);
int y = month.getYear();
int m = month.getMonth();
int d = _day;
if (1582 == y && 10 == m) {
if (d > 4 && d < 15) {
d += 10;
}
} else {
int maxDay = SolarUtil.getDaysOfMonth(y, m);
if (d > maxDay) {
d = maxDay;
}
}
return Solar.fromYmdHms(y, m, d, _hour, _minute, _second);
}