
Which header is this declared in? Sean. -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Jean-Pierre Bergamin Sent: 09 June 2008 13:10 To: boost-users@lists.boost.org Subject: [BULK] Re: [Boost-users] Converting seconds to minutes and seconds using boost::datetime Importance: Low Sean Farrow schrieb:
Does boost::datetime allow me to convert seconds (such as 164) to minutes and seconds? If yes wha function does this. Sean.
Construct a time_duration to get the information, i.e.: boost::posix_time::time_duration dur = boost::posix_time::seconds(164); long h = dur.hours(); long m = dur.minutes(); long s = dur.seconds(); Regards James _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users __________ Information from ESET NOD32 Antivirus, version of virus signature database 3167 (20080609) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 3167 (20080609) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com