You can easely optimize the leap year function:
Code:
bool is_leap_year(int year)
{
if( year % 4 ) return false;
if( year < ReformYear ) return true;
if( year % 100 ) return true;
if( year % 400 ) return false;
return true;
} But what exactly is it that you need us for? What is the concrete question or request?