nextYear method
Implementation
Solar nextYear(int years) {
int y = _year + years;
int m = _month;
int d = _day;
if (1582 == y && 10 == m) {
if (d > 4 && d < 15) {
d += 10;
}
} else if (2 == m) {
if (d > 28) {
if (!SolarUtil.isLeapYear(y)) {
d = 28;
}
}
}
return Solar.fromYmdHms(y, m, d, _hour, _minute, _second);
}