BloombergLP::bbldc::PeriodIcmaActualActual::yearsDiff

Return the signed fractional year count using a std::pmr::vector of period boundary dates.

Synopsis

Declared in <bbldc_periodicmaactualactual.h>

static
double
yearsDiff(
    bdlt::Date const& beginDate,
    bdlt::Date const& endDate,
    std::pmr::vector<bdlt::Date> const& periodDate,
    double periodYearDiff);

Return Value

the signed fractional number of years between the dates

Parameters

NameDescription
beginDatethe start date
endDatethe end date
periodDatethe period boundary dates
periodYearDiffthe duration of each period in years