X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ftime%2Fdatetime.h;h=f00d377875b3dc8a7c9719b0300644e341ba144b;hp=7c2a349a869a794ff1876ec3029343d38dc48963;hb=62a984b46e08740d19cb055f01be3365982f6b9d;hpb=cfc8e0b7b15ea505bd6a6a9599cbc5ce1e316963 diff --git a/source/time/datetime.h b/source/time/datetime.h index 7c2a349..f00d377 100644 --- a/source/time/datetime.h +++ b/source/time/datetime.h @@ -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 #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