refs #1486 added method to detect whether current year is a leap year