Return the day of week (1=SUN .. 7=SAT) for year and day‐of‐year.
Synopsis
Declared in <bdlt_posixdateimputil.h>
static
int
ydToDayOfWeek(
int year,
int dayOfYear);
Description
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 and dayOfYear. The behavior is undefined unless true == isValidYearDay(year, dayOfYear).
Return Value
day of week in [1 .. 7]
Parameters
Name |
Description |
year |
calendar year |
dayOfYear |
day of year |
Created with MrDocs