yearAndMonthIsEqual static method

bool yearAndMonthIsEqual(
  1. DateTime dateTime,
  2. DateTime locDateTime
)

是否同年同月

Implementation

static bool yearAndMonthIsEqual(DateTime dateTime, DateTime locDateTime) {
  return dateTime.year == locDateTime.year && dateTime.month == locDateTime.month;
}