ISO8601d: Added ::operator-
This commit is contained in:
@@ -1155,6 +1155,12 @@ ISO8601d& ISO8601d::operator-= (const int delta)
|
||||
return *this;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
time_t ISO8601d::operator- (const ISO8601d& rhs)
|
||||
{
|
||||
return _date - rhs._date;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void ISO8601p::clear ()
|
||||
{
|
||||
|
||||
@@ -77,11 +77,11 @@ public:
|
||||
bool sameWeek (const ISO8601d&) const;
|
||||
bool sameMonth (const ISO8601d&) const;
|
||||
bool sameYear (const ISO8601d&) const;
|
||||
|
||||
ISO8601d operator+ (const int);
|
||||
ISO8601d operator- (const int);
|
||||
ISO8601d& operator+= (const int);
|
||||
ISO8601d& operator-= (const int);
|
||||
time_t operator- (const ISO8601d&);
|
||||
|
||||
private:
|
||||
void clear ();
|
||||
|
||||
Reference in New Issue
Block a user