#include"Chrono.h"namespaceChrono{//------------------------------------------------------------------------------Date::Date():y{default_date().year()},m{default_date().month()},d{default_date().day()}{}//------------------------------------------------------------------------------Date::Date(intyy,Monthmm,intdd):y{yy},m{mm},d{dd}{if(!is_date(yy,mm,dd))throwInvalid{};}//------------------------------------------------------------------------------voidDate::add_day([[maybe_unused]]intn){// bogus stub}//------------------------------------------------------------------------------voidDate::add_month([[maybe_unused]]intn){// bogus stub}//------------------------------------------------------------------------------voidDate::add_year(intn){// beware of leap years!if(m==Month::feb&&d==29&&!leapyear(y+n)){m=Month::mar;// use March 1 instead of February 29d=1;}y+=n;}}// namespace Chrono