Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#2708 closed Bugs (fixed)

End of February 2000 is the 29.

Reported by: anonymous Owned by: az_sw_dude
Milestone: Boost 1.38.0 Component: date_time
Version: Boost 1.37.0 Severity: Problem
Keywords: Cc:

Description

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().

Change History (2)

comment:1 by Marshall Clow, 13 years ago

Resolution: fixed
Status: newclosed

(In [57844]) Fixes bug 2708

comment:2 by Marshall Clow, 13 years ago

It was a typo in the docs.

Note: See TracTickets for help on using tickets.