Tools.h++ Class Reference

Table Of Contents
static unsigned
daysInYear(unsigned year);
Returns the number of days in a given year.
static RWBoolean
dayWithinMonth(unsigned monthNum, unsigned dayNum,
unsigned year);
Returns TRUE if a day (1-31) is within a given month in a given year.
static unsigned
hash(const RWDate& d);
Returns the hash value of d as returned by d.hash().
static unsigned
indexOfMonth(const char* monthName,
const RWLocale& = RWLocale::global());
Returns the number of the month (1-12) corresponding to the given monthName. Returns
0 for no match.
static unsigned long
jday(unsigned mon, unsigned day, unsigned year);
Returns the Julian day corresponding to the given month (1-12), day (1-31) and year.
Returns zero (0) if the date is invalid.
static RWCString
nameOfMonth(unsigned monNum,
const RWLocale& = RWLocale::global());
Returns the name of month monNum (January = 1, ..., December = 12), formatted for the
given locale.
static RWBoolean
leapYear(unsigned year);
Returns TRUE if a given year is a leap year.
static RWDate
now();
Returns today's date.
static RWCString
weekDayName(unsigned dayNum,
const RWLocale& = RWLocale::global());
Returns the name of the day of the week dayNum (Monday = 1, ..., Sunday = 7),
formatted for the given locale.