Boost C++ Libraries

PrevUpHomeNext

Function template time_duration

boost::log::formatters::time_duration

Synopsis

// In header: <boost/log/formatters/date_time.hpp>


template<typename AttributeValueTypesT, typename CharT, typename... ArgsT> 
  fmt_date_time_facade< CharT, AttributeValueTypesT, implementation_defined, throw_policy > 
  time_duration(std::basic_string< CharT > const & name, ArgsT...const & args);

Description

Formatter generator with the explicitly specified set of supported types in the first template parameter.

Parameters:
args

Optional named arguments. Supported arguments:

  • format - format string, must be compliant with Boost.DateTime time format string specification. Default: %%-%H:%M:%S.%f

name

Attribute name


PrevUpHomeNext