mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
ISO8601: Added time_t ctor
This commit is contained in:
parent
29f17aed68
commit
a86e45c31e
2 changed files with 9 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue