ISO8601: Added time_t ctor

This commit is contained in:
Paul Beckingham 2015-08-12 08:01:43 -04:00
parent 29f17aed68
commit a86e45c31e
2 changed files with 9 additions and 2 deletions

View file

@ -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)
{

View file

@ -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&);