Tools.h++ Class Reference

Table Of Contents
next(const char* dayName,
const RWLocale& = RWLocale::global()) const;
Returns the date of the next dayName (for example, the date of the previous Monday)
The weekday name is interpreted according to the RWLocale argument.
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.
RWCString
weekDayName(const RWLocale& = RWLocale::global()) const;
Returns the name of the day of the week for this date, according to the optional
RWLocale argument.
unsigned
weekDay() const;
Returns the number of the day of the week for this date, where Monday = 1, ..., Sunday =
7.
unsigned
year() const;
Returns the year of this date.
Static Public Member Functions
static unsigned
dayOfWeek(const char* dayName,
const RWLocale& = RWLocale::global());
Returns the number of the day of the week corresponding to the given dayName.
"Monday" = 1, ..., "Sunday" = 7. Names are interpreted by the RWLocale argument.
Returns 0 if no match is found.
static unsigned
daysInMonthYear(unsigned month, unsigned year);
Returns the number of days in a given month and year. Returns 0 if month is not between
1 and 12 inclusive.