quantlib.time.daycounter.DayCounter.day_count

DayCounter.day_count(self, Date date1, Date date2)

Returns the number of days between two dates.