[#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&colon;&colon;vector` overload above&period;

== Synopsis

Declared in `&lt;bbldc&lowbar;perioddaycountutil&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,
    xref:BloombergLP/bbldc/DayCountConvention/Enum.adoc[DayCountConvention::Enum] convention);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
