ISO8601d: Added ::sameWeek
This commit is contained in:
@@ -1102,6 +1102,13 @@ bool ISO8601d::sameDay (const ISO8601d& rhs) const
|
|||||||
this->day () == rhs.day ();
|
this->day () == rhs.day ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
bool ISO8601d::sameWeek (const ISO8601d& rhs) const
|
||||||
|
{
|
||||||
|
return this->year () == rhs.year () &&
|
||||||
|
this->week () == rhs.week ();
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void ISO8601p::clear ()
|
void ISO8601p::clear ()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ public:
|
|||||||
bool operator>= (const ISO8601d&) const;
|
bool operator>= (const ISO8601d&) const;
|
||||||
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;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void clear ();
|
void clear ();
|
||||||
|
|||||||
Reference in New Issue
Block a user