mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
ISO8601d: Added ::operator==
This commit is contained in:
parent
ff320345e9
commit
90ac0e2b17
2 changed files with 8 additions and 0 deletions
|
@ -1049,6 +1049,12 @@ int ISO8601d::second () const
|
|||
return t->tm_sec;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool ISO8601d::operator== (const ISO8601d& rhs) const
|
||||
{
|
||||
return rhs._date == _date;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void ISO8601p::clear ()
|
||||
{
|
||||
|
|
|
@ -65,6 +65,8 @@ public:
|
|||
int minute () const;
|
||||
int second () const;
|
||||
|
||||
bool operator== (const ISO8601d&) const;
|
||||
|
||||
private:
|
||||
void clear ();
|
||||
bool parse_date_time (Nibbler&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue