Tools.h++ Class Reference

Table Of Contents
Related Global Operators
RWBoolean
operator<(const RWDate& d1, const RWDate& d2);
Returns TRUE if the date d1 is before d2.
RWBoolean
operator<=(const RWDate& d1, const RWDate& d2);
Returns TRUE if the date d1 is before or the same as d2.
RWBoolean
operator>(const RWDate& d1, const RWDate& d2);
Returns TRUE if the date d1 is after d2.
RWBoolean
operator>=(const RWDate& d1, const RWDate& d2);
Returns TRUE if the date d1 is after or the same as d2.
RWBoolean
operator==(const RWDate& d1, const RWDate& d2);
Returns TRUE if the date d1 is the same as t2.
RWBoolean
operator!=(const RWDate& d1, const RWDate& d2);
Returns TRUE if the date d1 is not the same as d2.
RWDate
operator+(const RWDate& d, unsigned long s);
RWDate
operator+(unsigned long s, const RWDate& d);
Returns the date s days in the future from the date d.
unsigned long
operator-(const RWDate& d1, const RWDate& d2);
If d1>d2, returns the number of days between d1 and d2. Otherwise, the result is
implementation defined.
RWDate
operator-(const RWDate& d, unsigned long s);
Returns the date s days in the past from d.
ostream&
operator<<(ostream& s, const RWDate& d);
Outputs the date d on ostream s, according to the locale imbued in the stream (see class
RWLocale), or by RWLocale::global() if none.