![]() |
Home | Libraries | People | FAQ | More |
boost::date_time::ostream_ymd_formatter — Convert ymd to a standard string formatting policies.
// In header: <boost/date_time/date_formatting_locales.hpp> template<typename ymd_type, typename facet_type, typename charT = char> class ostream_ymd_formatter { public: // types typedef ; typedef ostream_month_formatter< facet_type, charT > ; typedef charT > ; typedef charT > ; // public static functions void (, , const facet_type &); };
ostream_ymd_formatter
public static functionsvoid ( ymd, os, const facet_type & f);Convert ymd to a standard string formatting policies.
This is standard code for handling date formatting with year-month-day based date information. This function uses the format_type to control whether the string will contain separator characters, and if so what the character will be. In addtion, it can format the month as either an integer or a string as controled by the formatting policy