[#BloombergLP-bbldc-PeriodIcmaActualActual-yearsDiff-005] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bbldc.adoc[bbldc]::xref:BloombergLP/bbldc/PeriodIcmaActualActual.adoc[PeriodIcmaActualActual]::yearsDiff :relfileprefix: ../../../ :mrdocs: Return the signed fractional year count between two 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, xref:BloombergLP/bdlt/Date.adoc[bdlt::Date] const* periodDateBegin, xref:BloombergLP/bdlt/Date.adoc[bdlt::Date] const* periodDateEnd, 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 | *periodDateBegin* | the first period boundary date | *periodDateEnd* | one past the last period boundary date | *periodYearDiff* | the duration of each period in years |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#