mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +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);
|
return ISO8601d (_date + delta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
ISO8601d ISO8601d::operator- (const int delta)
|
||||||
|
{
|
||||||
|
return ISO8601d (_date - delta);
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void ISO8601p::clear ()
|
void ISO8601p::clear ()
|
||||||
{
|
{
|
||||||
|
|
|
@ -79,6 +79,7 @@ public:
|
||||||
bool sameYear (const ISO8601d&) const;
|
bool sameYear (const ISO8601d&) const;
|
||||||
|
|
||||||
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