yearIsEqual static method

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

是否同年

Implementation

static bool yearIsEqual(DateTime dateTime, DateTime locDateTime) {
  return dateTime.year == locDateTime.year;
}