See the corresponding bsl::vector overload above.
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);
signed fractional year difference according to convention
| 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 |