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
984b12c0d2
commit
16818c0b93
2 changed files with 8 additions and 0 deletions
|
@ -1148,6 +1148,13 @@ ISO8601d& ISO8601d::operator+= (const int delta)
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
ISO8601d& ISO8601d::operator-= (const int delta)
|
||||||
|
{
|
||||||
|
_date -= (time_t) delta;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void ISO8601p::clear ()
|
void ISO8601p::clear ()
|
||||||
{
|
{
|
||||||
|
|
|
@ -81,6 +81,7 @@ public:
|
||||||
ISO8601d operator+ (const int);
|
ISO8601d operator+ (const int);
|
||||||
ISO8601d operator- (const int);
|
ISO8601d operator- (const int);
|
||||||
ISO8601d& operator+= (const int);
|
ISO8601d& operator+= (const int);
|
||||||
|
ISO8601d& operator-= (const int);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void clear ();
|
void clear ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue