Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.

Function template file_time_to_microseconds



// In header: <boost/date_time/filetime_functions.hpp>

template<typename FileTimeT> 
  boost::uint64_t file_time_to_microseconds(FileTimeT const & ft);


The function converts file_time into number of microseconds elapsed since 1970-Jan-01

[Note] Note

Only dates after 1970-Jan-01 are supported. Dates before will be wrapped.

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.