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

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

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

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

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