def report_entire_month(month_date, start_hour=0, start_day=1):
 (year, month) = month_date.split('-')
 (year, month) = (int(year), int(month))
 hours = xrange(start_hour, 24)
 for day in xrange(start_day, (calendar.monthrange(year, month)[1] + 1)):
  for hour in hours:
   hour_date = ('%04d-%02d-%02d-%02d' % (year, month, day, hour))
   try:
    report_interval(hour_date, background=False)
   except ValueError:
    print ('Failed for %s' % hour_date)
    continue
  hours = xrange(24)
  day_date = ('%04d-%02d-%02d' % (year, month, day))
  try:
   report_interval(day_date, background=False)
  except ValueError:
   print ('Failed for %s' % day_date)
   continue
 report_interval(month_date, background=False)

def report_entire_month ( month_date , start_hour = 0 , start_day = 1 ) : ( year , month ) = month_date . split ( '-' ) ( year , month ) = ( int ( year ) , int ( month ) ) hours = xrange ( start_hour , 24 ) for day in xrange ( start_day , ( calendar . monthrange ( year , month ) [ 1 ] + 1 ) ) : for hour in hours : hour_date = ( '%04d-%02d-%02d-%02d' % ( year , month , day , hour ) ) try : report_interval ( hour_date , background = False ) except ValueError : print ( 'Failed for %s' % hour_date ) continue hours = xrange ( 24 ) day_date = ( '%04d-%02d-%02d' % ( year , month , day ) ) try : report_interval ( day_date , background = False ) except ValueError : print ( 'Failed for %s' % day_date ) continue report_interval ( month_date , background = False )
report all hours and days from month .