mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 19:17:19 +02:00
ISO8601d: Added ::operator-
This commit is contained in:
parent
c095289208
commit
ed2cf991f3
2 changed files with 7 additions and 0 deletions
|
@ -1135,6 +1135,12 @@ ISO8601d ISO8601d::operator+ (const int delta)
|
|||
return ISO8601d (_date + delta);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
ISO8601d ISO8601d::operator- (const int delta)
|
||||
{
|
||||
return ISO8601d (_date - delta);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void ISO8601p::clear ()
|
||||
{
|
||||
|
|
|
@ -79,6 +79,7 @@ public:
|
|||
bool sameYear (const ISO8601d&) const;
|
||||
|
||||
ISO8601d operator+ (const int);
|
||||
ISO8601d operator- (const int);
|
||||
|
||||
private:
|
||||
void clear ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue