Boost C++ Libraries: Ticket #2708: End of February 2000 is the 29. https://svn.boost.org/trac10/ticket/2708 <p> According to <a href="http://www.boost.org/doc/libs/1_37_0/doc/html/date_time/gregorian.html">http://www.boost.org/doc/libs/1_37_0/doc/html/date_time/gregorian.html</a> </p> <pre class="wiki">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(); </pre><p> 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 <code>end_of_month_day()</code>. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2708 Trac 1.4.3 Marshall Clow Sun, 22 Nov 2009 17:08:24 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2708#comment:1 https://svn.boost.org/trac10/ticket/2708#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/57844" title="Fixes bug 2708">[57844]</a>) Fixes bug 2708 </p> Ticket Marshall Clow Sun, 22 Nov 2009 17:09:22 GMT <link>https://svn.boost.org/trac10/ticket/2708#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2708#comment:2</guid> <description> <p> It was a typo in the docs. </p> </description> <category>Ticket</category> </item> </channel> </rss>