code: def daysInMonth(self, month, year):
          
          result = None
          debug and log.debug('daysInMonth(%s, %s)', month, year)
          if month > 0 and month <= 12:
              result = self._DaysInMonthList[month - 1]
  
              if month == 2:
                  if year in self._leapYears:
                      result += 1
                  else:
                      if calendar.isleap(year):
                          self._leapYears.append(year)
                          result += 1
  
          return result
docs: Take the given month (1-12) and a given year (4 digit) return
          the number of days in the month adjusting for leap year as needed