mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
ISO8601d: Added ::operator+=
This commit is contained in:
parent
ed2cf991f3
commit
984b12c0d2
2 changed files with 8 additions and 0 deletions
|
@ -1141,6 +1141,13 @@ ISO8601d ISO8601d::operator- (const int delta)
|
|||
return ISO8601d (_date - delta);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
ISO8601d& ISO8601d::operator+= (const int delta)
|
||||
{
|
||||
_date += (time_t) delta;
|
||||
return *this;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void ISO8601p::clear ()
|
||||
{
|
||||
|
|
|
@ -80,6 +80,7 @@ public:
|
|||
|
||||
ISO8601d operator+ (const int);
|
||||
ISO8601d operator- (const int);
|
||||
ISO8601d& operator+= (const int);
|
||||
|
||||
private:
|
||||
void clear ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue