Return the day of week (1=SUN .. 7=SAT) for the given YMD date.
Declared in <bdlt_posixdateimputil.h>
static
int
ymdToDayOfWeek(
int year,
int month,
int day);
Return, as an integer (with 1 = SUN, 2 = MON, ..., and 7 = SAT), the day (of the week) of the date value indicated by the specified year, month, and day. The behavior is undefined unless true == isValidYearMonthDay(year, month, day).
day of week in [1 .. 7]
| Name | Description |
|---|---|
| year | calendar year |
| month | month of year |
| day | day of month |