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

Subject: [Boost-bugs] [Boost C++ Libraries] #2634: Request for feature added to Gregorian Date System
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-01-05 04:41:30


#2634: Request for feature added to Gregorian Date System
------------------------------+---------------------------------------------
 Reporter: amilkh_at_[hidden] | Owner: az_sw_dude
     Type: Feature Requests | Status: new
Milestone: Boost 1.38.0 | Component: date_time
  Version: Boost 1.36.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 Hey,

 I'm not sure how to use mailing lists so:
 Can you please add a function that returns the 3 letter string referring
 to the month name. This code does it, but is inefficient:

 {{{
 namespace bG = boost::gregorian
 std::string getMonthName(bG::date date)
 {
         string temp = bG::to_simple_string(date);
         return (temp.substr(5, 3));
 }
 }}}
 I think this is an important function. It could also be called
 "get_month_name()"


 Also can you add something that converts the date to a std::string to the
 US date system. i.e. 2008-12-23 -> "Dec 12th, 2008" or (US short form)
 "12/23/2008"

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2634>
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