Class template time_facetboost::date_time::time_facet Synopsistemplate<typename time_type, typename CharT, typename OutItrT = std::ostreambuf_iterator<CharT, std::char_traits<CharT> > > class time_facet : public boost::date_time::date_facet< time_type::date_type, CharT, OutItrT > { public: // types typedef time_type::date_type date_type; typedef time_type::time_duration_type time_duration_type; typedef boost::date_time::period< time_type, time_duration_type > period_type; typedef boost::date_time::date_facet< typename time_type::date_type, CharT, OutItrT > base_type; typedef base_type::string_type string_type; typedef base_type::char_type char_type; typedef base_type::period_formatter_type period_formatter_type; typedef base_type::special_values_formatter_type special_values_formatter_type; typedef base_type::date_gen_formatter_type date_gen_formatter_type; // construct/copy/destruct time_facet(::size_t = 0); time_facet(const char_type *, period_formatter_type = period_formatter_type(), const special_values_formatter_type & = special_values_formatter_type(), date_gen_formatter_type = date_gen_formatter_type(), ::size_t = 0); // public member functions std::locale::id & __get_id(void) const; void time_duration_format(const char_type *const ) ; void set_iso_format() ; void set_iso_extended_format() ; OutItrT put(OutItrT, std::ios_base &, char_type, const time_type &) const; OutItrT put(OutItrT, std::ios_base &, char_type, const time_duration_type &) const; OutItrT put(OutItrT, std::ios_base &, char_type, const period_type &) const; // protected static functions static string_type fractional_seconds_as_string(const time_duration_type &, bool) ; static const char_type * fractional_seconds_format; static const char_type * fractional_seconds_or_none_format; static const char_type * seconds_with_fractional_seconds_format; static const char_type * seconds_format; static const char_type * standard_format; static const char_type * zone_abbrev_format; static const char_type * zone_name_format; static const char_type * zone_iso_format; static const char_type * zone_iso_extended_format; static const char_type * posix_zone_string_format; static const char_type * duration_seperator; static const char_type * duration_sign_always; static const char_type * duration_sign_negative_only; static const char_type * negative_sign; static const char_type * positive_sign; static const char_type * iso_time_format_specifier; static const char_type * iso_time_format_extended_specifier; static const char_type * default_time_format; static const char_type * default_time_duration_format; static std::locale::id id; }; DescriptionFacet used for format-based output of time types This class provides for the use of format strings to output times. In addition to the flags for formatting date elements, the following are the allowed format flags:
|