From d2931fc1a6b7d2408f4a207193d620d93558550c Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Mon, 20 Apr 2015 18:02:44 +0200 Subject: [PATCH] Fix #1690. --- libdevcore/CommonIO.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libdevcore/CommonIO.h b/libdevcore/CommonIO.h index 478383b25..80334fa31 100644 --- a/libdevcore/CommonIO.h +++ b/libdevcore/CommonIO.h @@ -77,7 +77,11 @@ template inline std::ostream& operator<<(std::ostream& _out, template inline std::ostream& operator<<(std::ostream& _out, std::multimap const& _e); template _S& operator<<(_S& _out, std::shared_ptr<_T> const& _p); +#ifdef _WIN32 +template inline std::string toString(std::chrono::time_point const& _e, std::string _format = "%Y-%m-%d %H:%M:%S") +#else template inline std::string toString(std::chrono::time_point const& _e, std::string _format = "%F %T") +#endif { unsigned long milliSecondsSinceEpoch = std::chrono::duration_cast(_e.time_since_epoch()).count(); auto const durationSinceEpoch = std::chrono::milliseconds(milliSecondsSinceEpoch);