Tools.h++ Manual
21-94 104011 Tandem Computers Incorporated
21
unsigned firstDayOfMonth(unsigned month)
const;
Returns the day of the year (1-336) corresponding to the first day of the month
month (1–12) in this
RWDate
’s year.
unsigned hash() const;
Returns a suitable hashing value.
RWBoolean isValid() const;
Returns
TRUE
if this is a valid date,
FALSE
otherwise.
RWBoolean leap() const;
Returns
TRUE
if the year of this
RWDate
is a leap year.
RWDate max(const RWDate& t) const;
Returns the later date of self or
t
.
RWDate min(const RWDate& t) const;
Returns the earlier date of self or
t
.
unsigned month() const;
Returns the month (1–12) for this date.
RWCString monthName(const RWLocale& =
RWLocale::global()) const;
Returns the name of the month for this date, according to the optional
RWLocale
argument.
void now();
Sets self to today’s date.
RWDate previous(unsigned dayNum) const;
Returns the date of the previous numbered day of the week, where Monday = 1,
..., Sunday = 7. The variable
dayNum
must be between 1 and 7, inclusive.
RWDate previous(const char* dayName,
const RWLocale& =
RWLocale::global()) const;
Returns the date of the previous
dayName
(for example, the date of the
previous Monday) The weekday name is interpreted according to the
RWLocale
argument.