isSameMonth function
Returns true if the two Jalali objects have the same month, and
year, or are both null.
Implementation
bool isSameMonth(Jalali dateA, Jalali dateB) {
return dateA.year == dateB.year && dateA.month == dateB.month;
}
Returns true if the two Jalali objects have the same month, and
year, or are both null.
bool isSameMonth(Jalali dateA, Jalali dateB) {
return dateA.year == dateB.year && dateA.month == dateB.month;
}