...one of the most highly
regarded and expertly designed C++ library projects in the
world. — Herb Sutter and Andrei
boost::date_time::time_from_ftime — Create a time object from an initialized FILETIME struct.
// In header: <boost/date_time/filetime_functions.hpp> template<typename TimeT, typename FileTimeT> TimeT time_from_ftime(const FileTimeT & ft);
Create a time object from an initialized FILETIME struct. A FILETIME struct holds 100-nanosecond units (0.0000001). When built with microsecond resolution the file_time's sub second value will be truncated. Nanosecond resolution has no truncation.
The function is templated on the FILETIME type, so that it can be used with both native FILETIME and the ad-hoc boost::date_time::winapi::file_time type.