...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::date_time::second_clock — A clock providing time level services based on C time_t capabilities.
// In header: <boost/date_time/time_clock.hpp> template<typename time_type> class second_clock { public: // types typedef time_type::date_type date_type; typedef time_type::time_duration_type time_duration_type; // public static functions static time_type local_time() ; static time_type universal_time() ; template<typename time_zone_type> static time_type local_time(boost::shared_ptr< time_zone_type >) ; // private static functions static time_type create_time(::std::tm *) ; };