isLeapYear method

bool isLeapYear()

是否闰年

Implementation

bool isLeapYear() {
  return (($y % 4 == 0) && ($y % 100 != 0)) || ($y % 400 == 0);
}