ISO8601d: Added ::operator-

This commit is contained in:
Paul Beckingham 2015-09-26 15:38:25 -04:00
parent c095289208
commit ed2cf991f3
2 changed files with 7 additions and 0 deletions

View file

@ -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 ()
{

View file

@ -79,6 +79,7 @@ public:
bool sameYear (const ISO8601d&) const;
ISO8601d operator+ (const int);
ISO8601d operator- (const int);
private:
void clear ();