How can I use my format_date function for my class variable?
class DailyAggregator(Aggregator):
time_dirty_data = self.format_date(datetime.datetime.now())
@staticmethod
def format_date(date):
return date.replace(hour=0, minute=0, second=0, microsecond=0)