diff --git a/src/ISO8601.cpp b/src/ISO8601.cpp index 8a4db0462..eed021304 100644 --- a/src/ISO8601.cpp +++ b/src/ISO8601.cpp @@ -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 () { diff --git a/src/ISO8601.h b/src/ISO8601.h index d9dd25462..224cf9659 100644 --- a/src/ISO8601.h +++ b/src/ISO8601.h @@ -79,6 +79,7 @@ public: bool sameYear (const ISO8601d&) const; ISO8601d operator+ (const int); + ISO8601d operator- (const int); private: void clear ();