diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-12-19 19:44:44 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-12-19 19:44:44 +0000 |
commit | 50cb4237b08e7519c2b848ee2479df965dfd148a (patch) | |
tree | 04cf9e0a40b68cfc9429532961ba11b12dc3950d /cpp/src/IceUtil/Time.cpp | |
parent | typo (diff) | |
download | ice-50cb4237b08e7519c2b848ee2479df965dfd148a.tar.bz2 ice-50cb4237b08e7519c2b848ee2479df965dfd148a.tar.xz ice-50cb4237b08e7519c2b848ee2479df965dfd148a.zip |
Added Ice.Logger.DateFormat property
Diffstat (limited to 'cpp/src/IceUtil/Time.cpp')
-rw-r--r-- | cpp/src/IceUtil/Time.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IceUtil/Time.cpp b/cpp/src/IceUtil/Time.cpp index 127dc68f845..22f963f4073 100644 --- a/cpp/src/IceUtil/Time.cpp +++ b/cpp/src/IceUtil/Time.cpp @@ -110,7 +110,7 @@ IceUtil::Time::toMicroSecondsDouble() const } std::string -IceUtil::Time::toDateTime() const +IceUtil::Time::toDateTime(const std::string& format) const { time_t time = static_cast<long>(_usec / 1000000); @@ -124,7 +124,7 @@ IceUtil::Time::toDateTime() const #endif char buf[32]; - strftime(buf, sizeof(buf), "%x %H:%M:%S", t); + strftime(buf, sizeof(buf), format.c_str(), t); std::ostringstream os; os << buf << "."; |