isLastDayOfYear method

bool isLastDayOfYear()

Checks if this DateTime is the last day of the year.

Implementation

bool isLastDayOfYear() {
  return month == 12 && day == 31;
}