Re: [boost] time_duration bug in Boost 1.30.0

2003-08-14 Thread Jeff Garland
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

[boost] time_duration bug in Boost 1.30.0

2003-08-05 Thread Stephan T. Lavavej
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