From: Sage Weil Date: Thu, 18 Dec 2008 19:32:08 +0000 (-0800) Subject: make time format easier to read X-Git-Tag: v0.6~26 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9f1c7b16c1e42b6f70bc0cc7a555b3b6b85ed5a0;p=ceph.git make time format easier to read --- diff --git a/src/include/utime.h b/src/include/utime.h index 3e39c5b6019..d813a4bb59b 100644 --- a/src/include/utime.h +++ b/src/include/utime.h @@ -186,12 +186,12 @@ inline std::ostream& operator<<(std::ostream& out, const utime_t& t) time_t tt = t.sec(); localtime_r(&tt, &bdt); out << std::setw(2) << (bdt.tm_year-100) // 2007 -> '07' - << std::setw(2) << (bdt.tm_mon+1) - << std::setw(2) << bdt.tm_mday - << "." + << '.' << std::setw(2) << (bdt.tm_mon+1) + << '.' << std::setw(2) << bdt.tm_mday + << ' ' << std::setw(2) << bdt.tm_hour - << std::setw(2) << bdt.tm_min - << std::setw(2) << bdt.tm_sec; + << ':' << std::setw(2) << bdt.tm_min + << ':' << std::setw(2) << bdt.tm_sec; } out << "."; out << std::setw(6) << t.usec();