Re: [Boost-bugs] [Boost C++ Libraries] #2634: Request for feature added to Gregorian Date System

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2634: Request for feature added to Gregorian Date System
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-02-13 09:52:22


#2634: Request for feature added to Gregorian Date System
-------------------------------+--------------------------------------------
  Reporter: amilkh_at_[hidden] | Owner: az_sw_dude
      Type: Feature Requests | Status: closed
 Milestone: Boost 1.38.0 | Component: date_time
   Version: Boost 1.36.0 | Severity: Problem
Resolution: wontfix | Keywords:
-------------------------------+--------------------------------------------
Changes (by james_at_[hidden]):

  * status: new => closed
  * resolution: => wontfix

Comment:

 Use the streaming interface for such kind of things:
 {{{
 #!c
 using namespace boost::gregorian;
 date d(2009, Feb, 13);
 ostringstream oss;
 date_facet* facet(new date_facet("%m/%d/%Y"));
 oss.imbue(std::locale(oss.getloc(), facet));
 oss << d << endl;
 oss << d.month() << endl;
 }}}

 See also
 http://www.boost.org/doc/libs/1_38_0/doc/html/date_time/date_time_io.html.

 Please use the mailing list to discuss such things.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2634#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC