ISO8601d: Added ::operator-
This commit is contained in:
@@ -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 ()
|
||||
{
|
||||
|
||||
@@ -79,6 +79,7 @@ public:
|
||||
bool sameYear (const ISO8601d&) const;
|
||||
|
||||
ISO8601d operator+ (const int);
|
||||
ISO8601d operator- (const int);
|
||||
|
||||
private:
|
||||
void clear ();
|
||||
|
||||
Reference in New Issue
Block a user