Load day‐of‐week‐after‐day‐of‐month schedule dates into the specified schedule.

Synopsis

Declared in <bblb_schedulegenerationutil.h>

static
void
generateFromDayOfWeekAfterDayOfMonth(
    bsl::vector<bdlt::Date>* schedule,
    bdlt::Date const& earliest,
    bdlt::Date const& latest,
    int exampleYear,
    int exampleMonth,
    int intervalInMonths,
    bdlt::DayOfWeek::Enum dayOfWeek,
    int dayOfMonth);

Description

Load, into the specified schedule, the chronologically increasing sequence of unique dates that are on the specified dayOfWeek on or after the specified dayOfMonth, integral multiples of the specified intervalInMonths away from the specified exampleYear and exampleMonth, and within the specified closed‐interval [earliest, latest]. If any of the months required for the schedule have fewer than dayOfMonth days, return an empty schedule. The behavior is undefined unless earliest <= latest, 1 <= exampleYear <= 9999, 1 <= exampleMonth <= 12, 1 <= intervalInMonths, and 1 <= dayOfMonth <= 31.

Parameters

Name

Description

schedule

receives the generated date sequence

earliest

inclusive start of the date window

latest

inclusive end of the date window

exampleYear

reference year for the interval lattice

exampleMonth

reference month for the interval lattice

intervalInMonths

spacing between schedule months

dayOfWeek

weekday required on or after dayOfMonth

dayOfMonth

earliest day of month for the weekday search

Created with MrDocs