diff --git a/src/ISO8601.cpp b/src/ISO8601.cpp index 0d8a43196..7d85ef10c 100644 --- a/src/ISO8601.cpp +++ b/src/ISO8601.cpp @@ -585,7 +585,8 @@ ISO8601p::ISO8601p () } //////////////////////////////////////////////////////////////////////////////// -ISO8601p::~ISO8601p () +ISO8601p::ISO8601p (time_t input) +: _value (input) { } @@ -606,6 +607,11 @@ ISO8601p::ISO8601p (const std::string& input) parse (input, idx); } +//////////////////////////////////////////////////////////////////////////////// +ISO8601p::~ISO8601p () +{ +} + //////////////////////////////////////////////////////////////////////////////// ISO8601p& ISO8601p::operator= (const ISO8601p& other) { diff --git a/src/ISO8601.h b/src/ISO8601.h index a8fb5d915..c8108c2aa 100644 --- a/src/ISO8601.h +++ b/src/ISO8601.h @@ -71,9 +71,10 @@ class ISO8601p { public: ISO8601p (); + ISO8601p (time_t); + ISO8601p (const std::string&); ~ISO8601p (); ISO8601p (const ISO8601p&); // Unimplemented - ISO8601p (const std::string&); ISO8601p& operator= (const ISO8601p&); bool operator< (const ISO8601p&); bool operator> (const ISO8601p&);