Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Class template ostream_date_formatter

boost::date_time::ostream_date_formatter — Convert a date to string using format policies.

Synopsis

// In header: <boost/date_time/date_formatting_locales.hpp>

template<typename date_type, typename facet_type, typename charT = char> 
class ostream_date_formatter {
public:
  // types
  typedef std::basic_ostream< charT > ostream_type;
  typedef date_type::ymd_type         ymd_type;    

  // public static functions
  static void date_put(const date_type &, ostream_type &, const facet_type &);
  static void date_put(const date_type &, ostream_type &);
};

Description

ostream_date_formatter public static functions

  1. static void date_put(const date_type & d, ostream_type & os, 
                         const facet_type & f);
    Put date into an ostream.
  2. static void date_put(const date_type & d, ostream_type & os);
    Put date into an ostream.

PrevUpHomeNext