yearIsEqual static method

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

year is equal. 是否同年.

Implementation

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