def total_days(self):
        """ The total days over which consumption data is recorded.

        Returns
        -------
        total_days : float
            The total days in the time span covered by this ConsumptionData
            instance.
        """
        period = self.total_period()

        if period is None:
            return 0
        else:
            tdelta = period.timedelta
            return tdelta.days + tdelta.seconds/8.64e4
dataset/ETHPy150Open impactlab/eemeter/eemeter/consumption.py/ConsumptionData.total_days/original