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