Subject: [Boost-bugs] [Boost C++ Libraries] #2708: End of February 2000 is the 29.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-02-02 09:32:11
#2708: End of February 2000 is the 29.
--------------------------+-------------------------------------------------
Reporter: anonymous | Owner: az_sw_dude
Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: date_time
Version: Boost 1.37.0 | Severity: Problem
Keywords: |
--------------------------+-------------------------------------------------
According to
http://www.boost.org/doc/libs/1_37_0/doc/html/date_time/gregorian.html
{{{
date end_of_month_day() const
Returns the last day of the month for the date.
date d(2000,Feb,1);
//gets Feb 28 -- 2000 was leap year
date eom = d.end_of_month_day();
}}}
Now, 2000 was indeed a leap year, so the last day of February should be
"Feb 29". Either this is just a small documentation bug, or a large one
that fails to explain the semantics of {{{end_of_month_day()}}}.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2708> 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