[#BloombergLP-bbldc-PeriodIcmaActualActual-yearsDiff-0c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bbldc.adoc[bbldc]::xref:BloombergLP/bbldc/PeriodIcmaActualActual.adoc[PeriodIcmaActualActual]::yearsDiff :relfileprefix: ../../../ :mrdocs: Return the signed fractional year count using a `std::pmr::vector` of period boundary dates. == Synopsis Declared in `<bbldc_periodicmaactualactual.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::pmr::vector<bdlt::Date> const& periodDate, double periodYearDiff); ---- == Return Value the signed fractional number of years between the dates == Parameters [cols="1,4"] |=== | Name| Description | *beginDate* | the start date | *endDate* | the end date | *periodDate* | the period boundary dates | *periodYearDiff* | the duration of each period in years |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#