Hi, I am using the Posix Time system. I have a class
class event{
private:
boost::posix_time::ptime time;
public:
string gettime(void);
}
string event::gettime(void){
return to_iso_extended_string(time.time_of_day());
}
but to_iso_extended_string does not accept type
boost::posix_time::time_duration
type only
boost::posix_time
it can be seen here
I want to return a string for later output etc
How can I solve this problem? I do not see a method in boost to convert
boost::posix_time::time_duration
to a string. I am new to both C ++ and apologizing if it is really simple.
Tommy source
share