[#BloombergLP-bbldc-PeriodDayCountUtil-yearsDiff-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bbldc.adoc[bbldc]::xref:BloombergLP/bbldc/PeriodDayCountUtil.adoc[PeriodDayCountUtil]::yearsDiff :relfileprefix: ../../../ :mrdocs: See the corresponding `bsl::vector` overload above. == Synopsis Declared in `<bbldc_perioddaycountutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static double yearsDiff( xref:BloombergLP/bdlt/Date.adoc[bdlt::Date] const& beginDate, xref:BloombergLP/bdlt/Date.adoc[bdlt::Date] const& endDate, std::vector<bdlt::Date> const& periodDate, double periodYearDiff, xref:BloombergLP/bbldc/DayCountConvention/Enum.adoc[DayCountConvention::Enum] convention); ---- == Return Value signed fractional year difference according to `convention` == Parameters [cols="1,4"] |=== | 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 |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#