Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-09-03 14:34:47

I'm trying to get a ptime relative to 1/1/1970, so I did:

    using namespace boost::date_time;
    ptime d;
    boost::posix_time::time_duration since_1970 = d - 1/Jan/1970;


Since it is a completely lossless conversion (like an upcast), I'd
like to see boost::date -> boost::posix_time::ptime implicit
conversions added.

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at