Return the signed fractional year count between two dates.
Declared in <bbldc_periodicmaactualactual.h>
static
double
yearsDiff(
bdlt::Date const& beginDate,
bdlt::Date const& endDate,
bdlt::Date const* periodDateBegin,
bdlt::Date const* periodDateEnd,
double periodYearDiff);
the signed fractional number of years between the dates
| 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 |