Boost C++ Libraries

PrevUpHomeNext

Function template date

boost::log::formatters::date

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 > 
  date(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 date format string specification. Default: %Y-%b-%d

name

Attribute name


PrevUpHomeNext