isSameYear static method

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

year is equal. 是否同年.

Implementation

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