def __get_monthly_source_begin_date(self, period, source_first_month): if period == 'all': return source_first_month elif period == 'recent': return str(date_util.get_last_month()) elif period == 'long': return str(date_util.get_last_year_by(date_util.get_last_month()))
def __get_daily_source_begin_date(self, period, source_first_day): if period == 'all': return source_first_day elif period == 'recent': return str(date_util.get_yesterday()) elif period == 'long': return str(date_util.get_last_month())
def __get_monthly_source_end_date(self, period): return str(date_util.get_last_month())