ISO8601d: Added ::sameHour

This commit is contained in:
Paul Beckingham
2015-09-26 15:04:01 -04:00
parent fe509cd3dd
commit ec66bc73d3
2 changed files with 10 additions and 0 deletions

View File

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