addDays method

  1. @override
Gregorian addDays(
  1. int days
)
override

makes a new date object with added days to this date

Original date object remains unchanged

this Method is safe

Implementation

@override
Gregorian addDays(int days) {
  if (days == 0) {
    return this;
  } else {
    return Gregorian.fromJulianDayNumber(julianDayNumber + days);
  }
}