[Chrono] Is there any functions that convert Chrono's time_point and duration to their Ptime equivalents?

Hello, I have been trying to find in the boost libraries if there are any interoperability functions for Boost::Chrono and Boost::Posix_Time? Does anyone know if they exist and what class they are in? Thanks, Matt

Le 19/01/12 19:49, Matthew Jenks a écrit :
Hello,
I have been trying to find in the boost libraries if there are any interoperability functions for Boost::Chrono and Boost::Posix_Time? Does anyone know if they exist and what class they are in?
Hi,
no, there aren't.
You can get them from
https://svn.boost.org/svn/boost/sandbox/conversion/boost/conversion/boost/ch...
and
https://svn.boost.org/svn/boost/sandbox/conversion/boost/conversion/boost/ch....
Of course, you should extract the code from to be independent of the
proposed library TBoost.Conversion reviewed but without review results yet.
template< typename Rep, typename Period>
posix_time::time_duration operator()(chrono::duration
participants (2)
-
Matthew Jenks
-
Vicente J. Botet Escriba