From: Mikko Rasa Date: Tue, 7 Jun 2011 13:54:13 +0000 (+0300) Subject: Add lexical conversion for DateTime X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=094732f666ff0529262d78b332d3a835605d9374;p=libs%2Fcore.git Add lexical conversion for DateTime --- diff --git a/source/time/datetime.h b/source/time/datetime.h index b786798..f00d377 100644 --- a/source/time/datetime.h +++ b/source/time/datetime.h @@ -77,6 +77,9 @@ private: void normalize(); }; +inline void operator<<(LexicalConverter &c, const DateTime &d) +{ c.result(d.format_rfc3339()); } + } // namespace Time } // namespace Msp