![]() |
Home | Libraries | People | FAQ | More |
boost::date_time::date_facet
// In header: <boost/date_time/date_facet.hpp> template<typename date_type, typename CharT, typename OutItrT> class date_facet : public { public: // types typedef ; typedef ; typedef ; typedef ; typedef boost::date_time::period< ; typedef ; typedef ; typedef boost::date_time::period_formatter< ; typedef boost::date_time::special_values_formatter< ; typedef ; typedef date_generator_formatter< ; typedef partial_date< ; typedef nth_kday_of_month< ; typedef first_kday_of_month< ; typedef last_kday_of_month< ; typedef first_kday_after< ; typedef first_kday_before< ; // construct/copy/destruct (:: = ); (, , :: = ); (, = , = , = , :: = ); // public member functions () ; (); (); (); (); (); (); (); (); (); (); (); (, = ); (, , , ) ; (, , , ) ; (, , , ) ; (, , , ) ; (, , , ) ; (, , , ) ; (, , , ) ; (, , , ) ; (, , , ) ; (, , , ) ; (, , , ) ; (, , , ) ; // protected member functions (, , , ) ; (, , , , ) ; // public data members static long_weekday_format; static short_weekday_format; static long_month_format; static short_month_format; static default_period_separator; static standard_format_specifier; static iso_format_specifier; static iso_format_extended_specifier; static default_date_format; static id; };
Class that provides format based I/O facet for date types.
This class allows the formatting of dates by using format string. Format strings are:
A => long_weekday_format - Full name Ex: Tuesday
a => short_weekday_format - Three letter abbreviation Ex: Tue
B => long_month_format - Full name Ex: October
b => short_month_format - Three letter abbreviation Ex: Oct
x => standard_format_specifier - defined by the locale
Y-b-d => default_date_format - YYYY-Mon-dd
Default month format == b Default weekday format == a
date_facet public member functions() ;
( format_str);
();
();
( format_str);
( format_str);
( per_formatter);
( svf);
( short_names);
( long_names);
( short_names);
( long_names);
( new_strings, beg_pos = );
( next, a_ios, fill_char, d) ;
( next, a_ios, fill_char, dd) ;
( next, a_ios, fill_char, m) ;
( next, a_ios, fill_char, day) ;puts the day of month
( next, a_ios, fill_char, dow) ;
( next, a_ios, fill_char, p) ;
( next, a_ios, fill_char, pd) ;
( next, a_ios, fill_char, nkd) ;
( next, a_ios, fill_char, fkd) ;
( next, a_ios, fill_char, lkd) ;
( next, a_ios, fill_char, fkb) ;
( next, a_ios, fill_char, fka) ;