See the corresponding bsl::vector overload above.

Synopsis

Declared in <bbldc_perioddaycountutil.h>

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

Return Value

signed fractional year difference according to convention

Parameters

Name

Description

beginDate

start of the date range

endDate

end of the date range

periodDate

sorted unique period‐boundary dates

periodYearDiff

year fraction of each period

convention

day‐count convention to apply

Created with MrDocs