Boost logo

Boost :

From: Jeff Garland (jeff_at_[hidden])
Date: 2006-06-18 10:50:38


Silex wrote:
>> For whatever datatype the "elapsed" function returns, I think we had
>> better have istream/ostream overloads for it. The current one returns
>> "double", which works fine with istream/ostream. The overload should
>> return or parse secs.fracsecs in all various forms.
>
> Interesting, but this is a change request for the date_time lib then ?
> Maybe there's already an ostream& operator<< for the
> boost::posix_time::ptime etc types, I'll have a look.

There is and it does what you would expect with fractional seconds, etc.
   (eg: 00:00:01.1234567). With a facet you can control the format of
the output.

http://www.boost.org/doc/html/date_time/date_time_io.html

Jeff


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk