Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75154 - trunk/libs/chrono/example
From: vicente.botet_at_[hidden]
Date: 2011-10-28 10:47:08


Author: viboes
Date: 2011-10-28 10:47:07 EDT (Fri, 28 Oct 2011)
New Revision: 75154
URL: http://svn.boost.org/trac/boost/changeset/75154

Log:
Chrono: use time_fmt with a format
Text files modified:
   trunk/libs/chrono/example/io_ex1.cpp | 3 +++
   1 files changed, 3 insertions(+), 0 deletions(-)

Modified: trunk/libs/chrono/example/io_ex1.cpp
==============================================================================
--- trunk/libs/chrono/example/io_ex1.cpp (original)
+++ trunk/libs/chrono/example/io_ex1.cpp 2011-10-28 10:47:07 EDT (Fri, 28 Oct 2011)
@@ -51,6 +51,9 @@
 
     cout << "\nsystem_clock::now() = " << system_clock::now() << '\n';
     cout << "\nsystem_clock::now() = " << time_fmt(chrono::timezone::local) << system_clock::now() << '\n';
+ cout << "\nsystem_clock::now() = " << time_fmt(chrono::timezone::local,"%Y/%m/%d") << system_clock::now() << '\n';
+
+
 #ifdef BOOST_CHRONO_HAS_CLOCK_STEADY
     cout << "steady_clock::now() = " << steady_clock::now() << '\n';
 #endif


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