Boost logo

Boost Users :

From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2008-06-09 08:14:06


Which header is this declared in?
Sean.

-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Jean-Pierre
Bergamin
Sent: 09 June 2008 13:10
To: boost-users_at_[hidden]
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_at_[hidden]
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
 


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net