mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
ISO8601d: Added ::sameMonth
This commit is contained in:
parent
aa90fdbe1c
commit
04836c2cec
2 changed files with 8 additions and 0 deletions
|
@ -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 ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue