]> git.tdb.fi Git - libs/core.git/commitdiff
Add lexical conversion for DateTime
authorMikko Rasa <tdb@tdb.fi>
Tue, 7 Jun 2011 13:54:13 +0000 (16:54 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 7 Jun 2011 13:54:13 +0000 (16:54 +0300)
source/time/datetime.h

index b786798707ab4db60c61b06263499ff7080f1b9b..f00d377875b3dc8a7c9719b0300644e341ba144b 100644 (file)
@@ -77,6 +77,9 @@ private:
        void normalize();
 };
 
+inline void operator<<(LexicalConverter &c, const DateTime &d)
+{ c.result(d.format_rfc3339()); }
+
 } // namespace Time
 } // namespace Msp