From 51cf7f7282d70aaca5046d7e9b872522d50dd545 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 28 Jan 2019 20:02:33 +0000 Subject: Switch to new libadhoc ctf-printf --- p2pvr/ice/chronoHelpers.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/p2pvr/ice/chronoHelpers.cpp b/p2pvr/ice/chronoHelpers.cpp index 058a99f..b9cebcd 100644 --- a/p2pvr/ice/chronoHelpers.cpp +++ b/p2pvr/ice/chronoHelpers.cpp @@ -2,22 +2,10 @@ #include #include #include - -namespace AdHoc { - template - struct StreamWriter : - public StreamWriterBase { - template - static void write(stream & s, const P & p, const Pn & ... pn) - { - s << std::setw(size) << std::setfill(pad) << p; - StreamWriter::next(s, pn...); - } - }; -} +#include namespace Chrono { - AdHocFormatter(DateTimeFormat, "%0p-%0p-%0pT%0p:%0p"); + AdHocFormatter(DateTimeFormat, "%04d-%02d-%02dT%02d:%02d"); std::ostream & operator<<(std::ostream & o, const DateTime & dt) { -- cgit v1.2.3