added a check for leap year, and made the clock check for that condition