Tools.h++ Manual
21-92 104011 Tandem Computers Incorporated
21
RWDate(const RWTime& t, const RWZone& zone =
RWZone::local());
Constructs an
RWDate
from an
RWTime
. The time zone used defaults to local.
The member function
isValid()
must be used to test whether the results are
a valid date.
RWDate(const struct tm*);
Constructs an
RWDate
from the contents of the
struct tm
argument members
tm_year, tm_mon,
and
tm_mday
. Note that the numbering of months and
years used in
struct tm
differs from that used for
RWDate
and
RWTime
operations.
struct tm
is declared in the standard include file
<time.h>
.
RWDate(unsigned long jd);
Construct a date from the Julian Day number
jd
.
Public member operators
RWDate& operator=(const RWDate&);
Assignment operator, generated by the compiler.
RWDate operator++();
Prefix increment operator. Add one day to self, then return the results.
RWDate operator--();
Prefix decrement operator. Subtract one day from self, then return the results.
RWDate operator++(int);
Postfix increment operator. Add one day to self, returning the initial value.
RWDate operator--(int);
Postfix decrement operator. Subtract one day from self, returning the initial
value.
RWDate& operator+=(int s);
Add
s
days to self, returning self.
RWDate& operator-=(int s);
Substract
s
days from self, returning self.