diff --git a/src/ISO8601.cpp b/src/ISO8601.cpp index 302904cd6..68ae4fec8 100644 --- a/src/ISO8601.cpp +++ b/src/ISO8601.cpp @@ -1148,6 +1148,13 @@ ISO8601d& ISO8601d::operator+= (const int delta) return *this; } +//////////////////////////////////////////////////////////////////////////////// +ISO8601d& ISO8601d::operator-= (const int delta) +{ + _date -= (time_t) delta; + return *this; +} + //////////////////////////////////////////////////////////////////////////////// void ISO8601p::clear () { diff --git a/src/ISO8601.h b/src/ISO8601.h index c7550478c..aaebf84c3 100644 --- a/src/ISO8601.h +++ b/src/ISO8601.h @@ -81,6 +81,7 @@ public: ISO8601d operator+ (const int); ISO8601d operator- (const int); ISO8601d& operator+= (const int); + ISO8601d& operator-= (const int); private: void clear ();