mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
ISO8601d: Added ::sameYear
This commit is contained in:
parent
04836c2cec
commit
79f030b199
2 changed files with 7 additions and 0 deletions
|
@ -1116,6 +1116,12 @@ bool ISO8601d::sameMonth (const ISO8601d& rhs) const
|
||||||
this->month () == rhs.month ();
|
this->month () == rhs.month ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
bool ISO8601d::sameYear (const ISO8601d& rhs) const
|
||||||
|
{
|
||||||
|
return this->year () == rhs.year ();
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void ISO8601p::clear ()
|
void ISO8601p::clear ()
|
||||||
{
|
{
|
||||||
|
|
|
@ -75,6 +75,7 @@ public:
|
||||||
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;
|
bool sameMonth (const ISO8601d&) const;
|
||||||
|
bool sameYear (const ISO8601d&) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void clear ();
|
void clear ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue