Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49725 - branches/release/libs/date_time/xmldoc
From: andrey.semashev_at_[hidden]
Date: 2008-11-13 14:22:52


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

Log:
Fixed examples for time_period constructors.

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

Modified: branches/release/libs/date_time/xmldoc/time_period.xml
==============================================================================
--- branches/release/libs/date_time/xmldoc/time_period.xml (original)
+++ branches/release/libs/date_time/xmldoc/time_period.xml 2008-11-13 14:22:52 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