code: def hour_to_day(timeperiod):
      
      t = datetime.strptime(timeperiod, SYNERGY_HOURLY_PATTERN)
      return t.strftime(SYNERGY_DAILY_PATTERN)
docs: :param timeperiod: as string in YYYYMMDDHH format
      :return string in YYYYMMDD00 format