ISO8601d: Added ::operator+

This commit is contained in:
Paul Beckingham 2015-09-26 15:33:45 -04:00
parent 957c8b7e7b
commit c095289208
2 changed files with 8 additions and 0 deletions

View file

@ -1129,6 +1129,12 @@ bool ISO8601d::sameYear (const ISO8601d& rhs) const
return this->year () == rhs.year ();
}
////////////////////////////////////////////////////////////////////////////////
ISO8601d ISO8601d::operator+ (const int delta)
{
return ISO8601d (_date + delta);
}
////////////////////////////////////////////////////////////////////////////////
void ISO8601p::clear ()
{

View file

@ -78,6 +78,8 @@ public:
bool sameMonth (const ISO8601d&) const;
bool sameYear (const ISO8601d&) const;
ISO8601d operator+ (const int);
private:
void clear ();
bool parse_date_time (Nibbler&);