differenceInDays method

int differenceInDays(
  1. PersianDate other
)

Number of days from other to this date, ignoring the time of day.

Positive when this date is later, so date.addDays(n).differenceInDays(date) == n.

Implementation

int differenceInDays(PersianDate other) => _julianDay - other._julianDay;