...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::ostream_time_period_formatter — Put a time period into a stream using appropriate facets.
// In header: <boost/date_time/time_formatting_streams.hpp> template<typename time_period_type, typename charT = char> class ostream_time_period_formatter { public: // types typedef std::basic_ostream< charT > ostream_type; typedef time_period_type::point_type time_type; typedef ostream_time_formatter< time_type, charT > time_formatter; // public static functions static void period_put(const time_period_type &, ostream_type &) ; };