ISO8601d: Added ::operator-=

This commit is contained in:
Paul Beckingham 2015-09-26 15:40:40 -04:00
parent 984b12c0d2
commit 16818c0b93
2 changed files with 8 additions and 0 deletions

View file

@ -1148,6 +1148,13 @@ ISO8601d& ISO8601d::operator+= (const int delta)
return *this; return *this;
} }
////////////////////////////////////////////////////////////////////////////////
ISO8601d& ISO8601d::operator-= (const int delta)
{
_date -= (time_t) delta;
return *this;
}
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void ISO8601p::clear () void ISO8601p::clear ()
{ {

View file

@ -81,6 +81,7 @@ public:
ISO8601d operator+ (const int); ISO8601d operator+ (const int);
ISO8601d operator- (const int); ISO8601d operator- (const int);
ISO8601d& operator+= (const int); ISO8601d& operator+= (const int);
ISO8601d& operator-= (const int);
private: private:
void clear (); void clear ();