c++ - Retrieve current century with boost -
i able retrieve current year calling:
boost::posix_time::second_clock::local_time().date().year();
but how can extract number of centuries year boost function?
what's wrong dividing 100?
i able retrieve current year calling:
boost::posix_time::second_clock::local_time().date().year();
but how can extract number of centuries year boost function?
what's wrong dividing 100?
Comments
Post a Comment