1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
6 #include "base/i2-base.hpp"
7 #include "base/datetime-ti.hpp"
8 #include "base/value.hpp"
19 class DateTime final : public ObjectImpl<DateTime>
22 DECLARE_OBJECT(DateTime);
24 DateTime(double value);
25 DateTime(const std::vector<Value>& args);
27 String Format(const String& format) const;
29 double GetValue() const override;
30 String ToString() const override;
32 static Object::Ptr GetPrototype();
40 #endif /* DATETIME_H */