ISO8601d: Added ::sameDay

This commit is contained in:
Paul Beckingham 2015-09-26 15:05:58 -04:00
parent ec66bc73d3
commit 2c449583ef
2 changed files with 9 additions and 0 deletions

View file

@ -1094,6 +1094,14 @@ bool ISO8601d::sameHour (const ISO8601d& rhs) const
this->hour () == rhs.hour ();
}
////////////////////////////////////////////////////////////////////////////////
bool ISO8601d::sameDay (const ISO8601d& rhs) const
{
return this->year () == rhs.year () &&
this->month () == rhs.month () &&
this->day () == rhs.day ();
}
////////////////////////////////////////////////////////////////////////////////
void ISO8601p::clear ()
{

View file

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