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
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 ()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue