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 to view this page for the latest version.

Struct basic_time_traits

boost::log::attributes::basic_time_traits — Base class for time traits involving Boost.DateTime.


// In header: <boost/log/attributes/time_traits.hpp>

struct basic_time_traits {
  // types
  typedef posix_time::ptime        time_type;     // Time type. 
  typedef posix_time::second_clock clock_source;  // Current time source.