Return the signed fractional year count using a std::vector of period boundary dates.
Declared in <bbldc_periodicmaactualactual.h>
static
double
yearsDiff(
bdlt::Date const& beginDate,
bdlt::Date const& endDate,
std::vector<bdlt::Date> const& periodDate,
double periodYearDiff);
the signed fractional number of years between the dates
| Name | Description |
|---|---|
| beginDate | the start date |
| endDate | the end date |
| periodDate | the period boundary dates |
| periodYearDiff | the duration of each period in years |