quantlib.pricingengines.bond.bondfunctions.duration

duration(Bond bond, Rate yld, DayCounter dayCounter, Compounding compounding, Frequency frequency, DurationType type, Date settlementDate=Date())