21#include <ql/time/daycounters/actualactual.hpp>
29 QuantLib::DayCounter underlyingDCF = QuantLib::ActualActual(QuantLib::ActualActual::ISDA);
33 return underlyingDCF.dayCount(d1, d2);
37 Time t = underlyingDCF.yearFraction(d1, d2);
39 return std::floor(0.5 + t);
QuantLib::Time yearFraction(const QuantLib::Date &d1, const QuantLib::Date &d2, const QuantLib::Date &, const QuantLib::Date &) const override
QuantLib::Date::serial_type dayCount(const QuantLib::Date &d1, const QuantLib::Date &d2) const override
day counter that returns the nearest integer yearfraction