ISO8601d: Added ::sameHour
This commit is contained in:
@@ -1085,6 +1085,15 @@ bool ISO8601d::operator>= (const ISO8601d& rhs) const
|
|||||||
return _date >= rhs._date;
|
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 ()
|
void ISO8601p::clear ()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ public:
|
|||||||
bool operator> (const ISO8601d&) const;
|
bool operator> (const ISO8601d&) const;
|
||||||
bool operator<= (const ISO8601d&) const;
|
bool operator<= (const ISO8601d&) const;
|
||||||
bool operator>= (const ISO8601d&) const;
|
bool operator>= (const ISO8601d&) const;
|
||||||
|
bool sameHour (const ISO8601d&) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void clear ();
|
void clear ();
|
||||||
|
|||||||
Reference in New Issue
Block a user