X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;ds=sidebyside;f=src%2Futil.cpp;h=9e24b378d834c6e3ad6a356b3f9a48b533fb1751;hb=3d3967b16610579e977b5d8685f3eedb10cbc23a;hp=a052843561302edcf1869df1250bcf11dca04a80;hpb=900e14f37a15fd743527147c7cb2e859b8dfb498;p=cassiopeia.git diff --git a/src/util.cpp b/src/util.cpp index a052843..9e24b37 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -138,7 +138,6 @@ std::pair addMonths( std::time_t t, int32_t count ) { } return std::pair( true, res ); - } std::pair parseMonthInterval( std::time_t t, const std::string& date ) { @@ -161,6 +160,7 @@ std::pair parseMonthInterval( std::time_t t, const std::string& da return std::pair( false, 0 ); } } + std::pair parseYearInterval( std::time_t t, const std::string& date ) { if( date[date.size() - 1] != 'y' ) { return std::pair( false, 0 );