isFirstDayOfYear method

bool isFirstDayOfYear()

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

Implementation

bool isFirstDayOfYear() {
  return month == 1 && day == 1;
}