mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
ISO8601d: Added ::sameWeek
This commit is contained in:
parent
2c449583ef
commit
aa90fdbe1c
2 changed files with 8 additions and 0 deletions
|
@ -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 ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue