ISO8601d: Added ::sameDay
This commit is contained in:
@@ -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 ()
|
||||
{
|
||||
|
||||
@@ -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 ();
|
||||
|
||||
Reference in New Issue
Block a user