BloombergLP::bbldc::PeriodIcmaActualActual::yearsDiff

yearsDiff overloads

Synopses

Declared in <bbldc_periodicmaactualactual.h>

Return the signed fractional year count using a bsl::vector of period boundary dates.

static
double
yearsDiff(
    bdlt::Date const& beginDate,
    bdlt::Date const& endDate,
    bsl::vector<bdlt::Date> const& periodDate,
    double periodYearDiff);
» more...

Return the signed fractional year count using a std::pmr::vector of period boundary dates.

static
double
yearsDiff(
    bdlt::Date const& beginDate,
    bdlt::Date const& endDate,
    std::pmr::vector<bdlt::Date> const& periodDate,
    double periodYearDiff);
» more...

Return the signed fractional year count using a std::vector of period boundary dates.

static
double
yearsDiff(
    bdlt::Date const& beginDate,
    bdlt::Date const& endDate,
    std::vector<bdlt::Date> const& periodDate,
    double periodYearDiff);
» more...

Return the signed fractional year count between two dates.

static
double
yearsDiff(
    bdlt::Date const& beginDate,
    bdlt::Date const& endDate,
    bdlt::Date const* periodDateBegin,
    bdlt::Date const* periodDateEnd,
    double periodYearDiff);
» more...

Return Value

the signed fractional number of years between the dates

Parameters

NameDescription
beginDatethe start date
endDatethe end date
periodDateBeginthe first period boundary date
periodDateEndone past the last period boundary date
periodYearDiffthe duration of each period in years