Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70766 - trunk/libs/date_time/xmldoc
From: marshall_at_[hidden]
Date: 2011-03-30 18:22:16


Author: marshall
Date: 2011-03-30 18:22:15 EDT (Wed, 30 Mar 2011)
New Revision: 70766
URL: http://svn.boost.org/trac/boost/changeset/70766

Log:
Applied patches - Refs #3651 Refs #4845
Text files modified:
   trunk/libs/date_time/xmldoc/date_class.xml | 4 ++--
   trunk/libs/date_time/xmldoc/usage_examples.xml | 5 +++--
   2 files changed, 5 insertions(+), 4 deletions(-)

Modified: trunk/libs/date_time/xmldoc/date_class.xml
==============================================================================
--- trunk/libs/date_time/xmldoc/date_class.xml (original)
+++ trunk/libs/date_time/xmldoc/date_class.xml 2011-03-30 18:22:15 EDT (Wed, 30 Mar 2011)
@@ -336,13 +336,13 @@
           <entry><screen></screen></entry>
         </row>
         <row>
- <entry valign="top" morerows="1"><screen>date end_of_month_day() const</screen></entry>
+ <entry valign="top" morerows="1"><screen>date end_of_month() const</screen></entry>
           <entry>Returns the last day of the month for the date.</entry>
         </row>
         <row>
           <entry><screen>date d(2000,Feb,1);
 //gets Feb 29 -- 2000 was leap year
-date eom = d.end_of_month_day();</screen></entry>
+date eom = d.end_of_month();</screen></entry>
         </row>
       </tbody>
     </tgroup>

Modified: trunk/libs/date_time/xmldoc/usage_examples.xml
==============================================================================
--- trunk/libs/date_time/xmldoc/usage_examples.xml (original)
+++ trunk/libs/date_time/xmldoc/usage_examples.xml 2011-03-30 18:22:15 EDT (Wed, 30 Mar 2011)
@@ -17,7 +17,7 @@
 
     <programlisting><emphasis role="keyword">using namespace</emphasis> boost::gregorian;
     date weekstart(<emphasis role="number">2002</emphasis>,Feb,<emphasis role="number">1</emphasis>);
- date weekend = weekstart + week(<emphasis role="number">1</emphasis>);
+ date weekend = weekstart + weeks(<emphasis role="number">1</emphasis>);
     date d2 = d1 + days(<emphasis role="number">5</emphasis>);
     date today = day_clock::local_day();
     if (d2 &gt;= today) {} <emphasis role="comment">//date comparison operators</emphasis>
@@ -39,7 +39,8 @@
     date d5 = next_weekday(d4, Sunday); <emphasis role="comment">//calculate Sunday following d4
 
     //US labor day is first Monday in Sept</emphasis>
- nth_day_of_the_week_in_month labor_day(nth_dow::first,Monday, Sep);
+ <emphasis role="keyword">typedef</emphasis> nth_day_of_the_week_in_month nth_dow;
+ nth_dow labor_day(nth_dow::first,Monday, Sep);
     <emphasis role="comment">//calculate a specific date for 2004 from functor</emphasis>
     date d6 = labor_day.get_date(<emphasis role="number">2004</emphasis>);
     </programlisting>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk