Boost logo

Boost Users :

Subject: Re: [Boost-users] [datetime] convert a int32_t to a time
From: Igor R (boost.lists_at_[hidden])
Date: 2011-07-10 02:52:10


> I’m working with a piece of code that gives me time as an int32_t I’d like
> to convert this in to a more intelligible form to store along with the current date.

int32_t is not a time format.
If you mean you've got time_t, you can use from_time_t():
http://www.boost.org/doc/libs/1_46_1/doc/html/date_time/posix_time.html#ptime_from_funcs


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