isLeapYear static method

bool isLeapYear(
  1. DateTime dateTime
)

Return whether it is leap year. 是否是闰年

Implementation

static bool isLeapYear(DateTime dateTime) {
  return isLeapYearByYear(dateTime.year);
}