[#BloombergLP-bbldc-PeriodIcmaActualActual-yearsDiff-01]
= 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&colon;&colon;vector` of period boundary dates&period;

== Synopsis

Declared in `&lt;bbldc&lowbar;periodicmaactualactual&period;h&gt;`

[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&lt;bdlt::Date&gt; 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]#
