diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-12-20 14:34:35 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-12-20 14:34:35 +0000 |
commit | 269be23a39f6eb47140d61739f9d897ceda93601 (patch) | |
tree | 9f0f8ff5c523aca1c697539589a4f5444219154d /cpp/src/IceUtil/Time.cpp | |
parent | Use Locale date format (diff) | |
download | ice-269be23a39f6eb47140d61739f9d897ceda93601.tar.bz2 ice-269be23a39f6eb47140d61739f9d897ceda93601.tar.xz ice-269be23a39f6eb47140d61739f9d897ceda93601.zip |
Remove Ice.Logger.DateFormat
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 22f963f4073..127dc68f845 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 std::string& format) const +IceUtil::Time::toDateTime() const { time_t time = static_cast<long>(_usec / 1000000); @@ -124,7 +124,7 @@ IceUtil::Time::toDateTime(const std::string& format) const #endif char buf[32]; - strftime(buf, sizeof(buf), format.c_str(), t); + strftime(buf, sizeof(buf), "%x %H:%M:%S", t); std::ostringstream os; os << buf << "."; |