[#BloombergLP-bbldc-PeriodIcmaActualActual-yearsDiff-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bbldc.adoc[bbldc]::xref:BloombergLP/bbldc/PeriodIcmaActualActual.adoc[PeriodIcmaActualActual]::yearsDiff
:relfileprefix: ../../../
:mrdocs:

`yearsDiff` overloads

== Synopses

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

Return the signed fractional year count using a `bsl&colon;&colon;vector` of period boundary dates&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
double
xref:BloombergLP/bbldc/PeriodIcmaActualActual/yearsDiff-00b.adoc[yearsDiff](
    xref:BloombergLP/bdlt/Date.adoc[bdlt::Date] const& beginDate,
    xref:BloombergLP/bdlt/Date.adoc[bdlt::Date] const& endDate,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;bdlt::Date&gt;] const& periodDate,
    double periodYearDiff);
----

[.small]#xref:BloombergLP/bbldc/PeriodIcmaActualActual/yearsDiff-00b.adoc[_» more&period;&period;&period;_]#

Return the signed fractional year count using a `std&colon;&colon;pmr&colon;&colon;vector` of period boundary dates&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
double
xref:BloombergLP/bbldc/PeriodIcmaActualActual/yearsDiff-0c.adoc[yearsDiff](
    xref:BloombergLP/bdlt/Date.adoc[bdlt::Date] const& beginDate,
    xref:BloombergLP/bdlt/Date.adoc[bdlt::Date] const& endDate,
    std::pmr::vector&lt;bdlt::Date&gt; const& periodDate,
    double periodYearDiff);
----

[.small]#xref:BloombergLP/bbldc/PeriodIcmaActualActual/yearsDiff-0c.adoc[_» more&period;&period;&period;_]#

Return the signed fractional year count using a `std&colon;&colon;vector` of period boundary dates&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
double
xref:BloombergLP/bbldc/PeriodIcmaActualActual/yearsDiff-01.adoc[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);
----

[.small]#xref:BloombergLP/bbldc/PeriodIcmaActualActual/yearsDiff-01.adoc[_» more&period;&period;&period;_]#

Return the signed fractional year count between two dates&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
double
xref:BloombergLP/bbldc/PeriodIcmaActualActual/yearsDiff-005.adoc[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);
----

[.small]#xref:BloombergLP/bbldc/PeriodIcmaActualActual/yearsDiff-005.adoc[_» more&period;&period;&period;_]#

== 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
| *periodDateBegin*
| the first period boundary date
| *periodDateEnd*
| one past the last period boundary date
|===


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