Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49724 - trunk/libs/date_time/xmldoc
From: andrey.semashev_at_[hidden]
Date: 2008-11-13 14:22:09


Author: andysem
Date: 2008-11-13 14:22:08 EST (Thu, 13 Nov 2008)
New Revision: 49724
URL: http://svn.boost.org/trac/boost/changeset/49724

Log:
Fixed examples for time_period constructors.

Text files modified:
   trunk/libs/date_time/xmldoc/time_period.xml | 10 +++++-----
   1 files changed, 5 insertions(+), 5 deletions(-)

Modified: trunk/libs/date_time/xmldoc/time_period.xml
==============================================================================
--- trunk/libs/date_time/xmldoc/time_period.xml (original)
+++ trunk/libs/date_time/xmldoc/time_period.xml 2008-11-13 14:22:08 EST (Thu, 13 Nov 2008)
@@ -60,8 +60,9 @@
           </row>
           <row>
             <entry><screen>date d(2002,Jan,01);
-ptime t(d, seconds(10)); //10 sec after midnight
-time_period tp(t, hours(3));</screen>
+ptime t1(d, seconds(10)); //10 sec after midnight
+ptime t2(d, hours(10)); //10 hours after midnight
+time_period tp(t1, t2);</screen>
             </entry>
           </row>
 
@@ -72,9 +73,8 @@
           </row>
           <row>
             <entry><screen>date d(2002,Jan,01);
-ptime t1(d, seconds(10)); //10 sec after midnight
-ptime t2(d, hours(10)); //10 hours after midnight
-time_period tp(t1, t2);</screen>
+ptime t(d, seconds(10)); //10 sec after midnight
+time_period tp(t, hours(3));</screen>
             </entry>
           </row>
           


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