
15 May
2007
15 May
'07
2:39 a.m.
I'm want to represent a period of time of 1 year starting at the current ptime and ending at the corresponding ptime a year from now. I've tried this: boost::posix_time::time_period _time_period( boost::posix_time::second_clock::local_time(), boost::gregorian::years(1) ); However I get this error: error: no matching function for call to `boost::date_time::period<boost::posix_time::ptime, boost::posix_time::time_duration>::period(boost::posix_time::ptime, boost::gregorian::years)' Any thoughts on how to solve my problem? Thanks, Ken