mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
ISO8601d: Added ::operator+
This commit is contained in:
parent
957c8b7e7b
commit
c095289208
2 changed files with 8 additions and 0 deletions
|
@ -1129,6 +1129,12 @@ bool ISO8601d::sameYear (const ISO8601d& rhs) const
|
|||
return this->year () == rhs.year ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
ISO8601d ISO8601d::operator+ (const int delta)
|
||||
{
|
||||
return ISO8601d (_date + delta);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void ISO8601p::clear ()
|
||||
{
|
||||
|
|
|
@ -78,6 +78,8 @@ public:
|
|||
bool sameMonth (const ISO8601d&) const;
|
||||
bool sameYear (const ISO8601d&) const;
|
||||
|
||||
ISO8601d operator+ (const int);
|
||||
|
||||
private:
|
||||
void clear ();
|
||||
bool parse_date_time (Nibbler&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue