isSameMonth method

bool isSameMonth(
  1. PersianDate other
)

Whether this date is in the same Jalali month and year as other.

Implementation

bool isSameMonth(PersianDate other) =>
    year == other.year && month == other.month;