On Mon, 4 Aug 2003 20:17:03 -0700, Stephan T. Lavavej wrote
time_duration behaves highly nonintuitively. A time_duration should
be convertible to seconds by calculating td.hours() * 3600 +
td.minutes() * 60 + td.seconds(), right? Wrong!
Hmm, I agree that this is not nice...
...example
time_duration behaves highly nonintuitively. A time_duration should be
convertible to seconds by calculating td.hours() * 3600 + td.minutes() * 60
+ td.seconds(), right? Wrong!
This is the correct way to do it:
int seconds_from_time_duration(const boost::posix_time::time_duration td) {
const