isLeapYearByDateTime static method

bool isLeapYearByDateTime(
  1. DateTime dateTime
)

判断是否为闰年

dateTime日期

Implementation

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