ISO8601d: Added ::sameYear

This commit is contained in:
Paul Beckingham 2015-09-26 15:11:58 -04:00
parent 04836c2cec
commit 79f030b199
2 changed files with 7 additions and 0 deletions

View file

@ -1116,6 +1116,12 @@ bool ISO8601d::sameMonth (const ISO8601d& rhs) const
this->month () == rhs.month (); this->month () == rhs.month ();
} }
////////////////////////////////////////////////////////////////////////////////
bool ISO8601d::sameYear (const ISO8601d& rhs) const
{
return this->year () == rhs.year ();
}
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void ISO8601p::clear () void ISO8601p::clear ()
{ {

View file

@ -75,6 +75,7 @@ public:
bool sameDay (const ISO8601d&) const; bool sameDay (const ISO8601d&) const;
bool sameWeek (const ISO8601d&) const; bool sameWeek (const ISO8601d&) const;
bool sameMonth (const ISO8601d&) const; bool sameMonth (const ISO8601d&) const;
bool sameYear (const ISO8601d&) const;
private: private:
void clear (); void clear ();