Is there a way to convert the boost::date_duration to a double. I have the following code:
date be;
date bd;
days t = (be - bd);
std::cout << "days are:" << t << std::endl;
This works fine and returns the no. of days. But I want to get the value in years, so if I divide t by 365, it only shows 0. setprecision()
did not help either.