예제 #1
0
 def get_active_days(self):
     """Return the amount of days the segment has been active."""
     return count_active_days(self.enable_date, self.disable_date)
예제 #2
0
def active_days(enable_date, disable_date):
    return count_active_days(enable_date, disable_date)