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;

Error.

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
www.boost-consulting.com

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