]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/datetime.h
Add lexical conversion for DateTime
[libs/core.git] / 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