ISO8601d: Added ::operator==

This commit is contained in:
Paul Beckingham 2015-09-26 14:51:46 -04:00
parent ff320345e9
commit 90ac0e2b17
2 changed files with 8 additions and 0 deletions

View file

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

View file

@ -65,6 +65,8 @@ public:
int minute () const;
int second () const;
bool operator== (const ISO8601d&) const;
private:
void clear ();
bool parse_date_time (Nibbler&);