ISO8601d: Added ::sameWeek

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

View file

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

View file

@ -73,6 +73,7 @@ public:
bool operator>= (const ISO8601d&) const;
bool sameHour (const ISO8601d&) const;
bool sameDay (const ISO8601d&) const;
bool sameWeek (const ISO8601d&) const;
private:
void clear ();