Classes | |
class | LogAnalyser |
Functions | |
def | LastMonthArgs |
def python::LogAnalyser::LastMonthArgs | ( | ) |
Return tuple (start,end,html_file_name) that are suitable to feed into LogAnalyser to produce last month's statistics.
Definition at line 11 of file LogAnalyser.py.
00011 : 00012 """Return tuple (start,end,html_file_name) that are suitable to feed into 00013 LogAnalyser to produce last month's statistics.""" 00014 00015 today = datetime.date.today() 00016 end_date = today - datetime.timedelta(today.day) 00017 start_date = end_date - datetime.timedelta(end_date.day-1) 00018 return(start_date.isoformat(),end_date.isoformat(),start_date.strftime("%b_%Y").lower()+".html") 00019 class LogAnalyser: