comparison 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
comparison
equal deleted inserted replaced
186:f68c039b0571 187:8e673a65564d
35 #include "OrthancException.h" 35 #include "OrthancException.h"
36 36
37 #include <string.h> 37 #include <string.h>
38 #include <boost/filesystem.hpp> 38 #include <boost/filesystem.hpp>
39 #include <boost/filesystem/fstream.hpp> 39 #include <boost/filesystem/fstream.hpp>
40 #include <boost/date_time/posix_time/posix_time.hpp>
40 #include <algorithm> 41 #include <algorithm>
41 #include <ctype.h> 42 #include <ctype.h>
42 43
43 #if defined(_WIN32) 44 #if defined(_WIN32)
44 #include <windows.h> 45 #include <windows.h>
548 { 549 {
549 throw OrthancException(ErrorCode_InternalError); 550 throw OrthancException(ErrorCode_InternalError);
550 } 551 }
551 } 552 }
552 553
554 std::string Toolbox::GetNowIsoString()
555 {
556 boost::posix_time::ptime now = boost::posix_time::second_clock::local_time();
557 return boost::posix_time::to_iso_string(now);
558 }
559
553 560
554 } 561 }