ISO8601d: Added ::sameYear
This commit is contained in:
@@ -1116,6 +1116,12 @@ bool ISO8601d::sameMonth (const ISO8601d& rhs) const
|
||||
this->month () == rhs.month ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool ISO8601d::sameYear (const ISO8601d& rhs) const
|
||||
{
|
||||
return this->year () == rhs.year ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void ISO8601p::clear ()
|
||||
{
|
||||
|
||||
@@ -75,6 +75,7 @@ public:
|
||||
bool sameDay (const ISO8601d&) const;
|
||||
bool sameWeek (const ISO8601d&) const;
|
||||
bool sameMonth (const ISO8601d&) const;
|
||||
bool sameYear (const ISO8601d&) const;
|
||||
|
||||
private:
|
||||
void clear ();
|
||||
|
||||
Reference in New Issue
Block a user