diff Core/Toolbox.cpp @ 187:8e673a65564d

refactoring of storing new instances
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 12 Nov 2012 17:29:11 +0100
parents 81b6f3013738
children 7f74209ea0f8
line wrap: on
line diff
--- a/Core/Toolbox.cpp	Mon Nov 12 15:29:07 2012 +0100
+++ b/Core/Toolbox.cpp	Mon Nov 12 17:29:11 2012 +0100
@@ -37,6 +37,7 @@
 #include <string.h>
 #include <boost/filesystem.hpp>
 #include <boost/filesystem/fstream.hpp>
+#include <boost/date_time/posix_time/posix_time.hpp>
 #include <algorithm>
 #include <ctype.h>
 
@@ -550,5 +551,11 @@
     }
   }
 
+  std::string Toolbox::GetNowIsoString()
+  {
+    boost::posix_time::ptime now = boost::posix_time::second_clock::local_time();
+    return boost::posix_time::to_iso_string(now);
+  }
+
 
 }