differenceInYears method
- PersianDate other
Number of whole Jalali years from other to this date, ignoring the
time of day.
Positive when this date is later, and counted like differenceInMonths: someone born on 1370/12/30 is 30 years old on 1400/12/29, the last day of 1400.
Implementation
int differenceInYears(PersianDate other) => differenceInMonths(other) ~/ 12;