diff --git a/src/ISO8601.cpp b/src/ISO8601.cpp index eed021304..302904cd6 100644 --- a/src/ISO8601.cpp +++ b/src/ISO8601.cpp @@ -1141,6 +1141,13 @@ ISO8601d ISO8601d::operator- (const int delta) return ISO8601d (_date - delta); } +//////////////////////////////////////////////////////////////////////////////// +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 224cf9659..c7550478c 100644 --- a/src/ISO8601.h +++ b/src/ISO8601.h @@ -80,6 +80,7 @@ public: ISO8601d operator+ (const int); ISO8601d operator- (const int); + ISO8601d& operator+= (const int); private: void clear ();