ISO8601d: Added ::sameMonth

This commit is contained in:
Paul Beckingham 2015-09-26 15:10:04 -04:00
parent aa90fdbe1c
commit 04836c2cec
2 changed files with 8 additions and 0 deletions

View file

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

View file

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