Return the signed fractional year count between two dates.

Synopsis

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);

Return Value

the signed fractional number of years between the dates

Parameters

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

Created with MrDocs