addDays method

  1. @override
Jalali 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
Jalali addDays(int days) {
  if (days == 0) {
    return this;
  } else {
    return Jalali.fromJulianDayNumber(
      julianDayNumber + days,
      hour,
      minute,
      second,
      millisecond,
    );
  }
}