]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/datetime.h
Make Time::sleep void
[libs/core.git] / source / time / datetime.h
index 7c2a349a869a794ff1876ec3029343d38dc48963..f00d377875b3dc8a7c9719b0300644e341ba144b 100644 (file)
@@ -1,16 +1,9 @@
-/* $Id$
-
-This file is part of libmspcore     
-Copyright © 2006  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_TIME_DATETIME_H_
 #define MSP_TIME_DATETIME_H_
 
 #include <string>
 #include "timezone.h"
-#include "types.h"
+#include "rawtime.h"
 
 namespace Msp {
 namespace Time {
@@ -82,9 +75,11 @@ public:
 private:
        void add_raw(RawTime);
        void normalize();
-       void validate() const;
 };
 
+inline void operator<<(LexicalConverter &c, const DateTime &d)
+{ c.result(d.format_rfc3339()); }
+
 } // namespace Time
 } // namespace Msp