mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
ISO8601d: Added ::sameDay
This commit is contained in:
parent
ec66bc73d3
commit
2c449583ef
2 changed files with 9 additions and 0 deletions
|
@ -1094,6 +1094,14 @@ bool ISO8601d::sameHour (const ISO8601d& rhs) const
|
|||
this->hour () == rhs.hour ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool ISO8601d::sameDay (const ISO8601d& rhs) const
|
||||
{
|
||||
return this->year () == rhs.year () &&
|
||||
this->month () == rhs.month () &&
|
||||
this->day () == rhs.day ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void ISO8601p::clear ()
|
||||
{
|
||||
|
|
|
@ -72,6 +72,7 @@ public:
|
|||
bool operator<= (const ISO8601d&) const;
|
||||
bool operator>= (const ISO8601d&) const;
|
||||
bool sameHour (const ISO8601d&) const;
|
||||
bool sameDay (const ISO8601d&) const;
|
||||
|
||||
private:
|
||||
void clear ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue