def METHOD_NAME(self, hours):
    day_groups = []
    this_day_group = None
    for hour in hours:
        if len(hour["times"]) == 0:
            pass
        else:
            d = hour["dayOfTheWeek"]
            day = DAYS_NAME[d]
            close_time = hour["times"][0]["close"][:-3]
            if not this_day_group:
                this_day_group = dict(from_day=day, to_day=day, hours=close_time)
            elif this_day_group["hours"] != close_time:
                day_groups.append(this_day_group)
                this_day_group = dict(from_day=day, to_day=day, hours=close_time)
            else:
                this_day_group["to_day"] = day
    day_groups.append(this_day_group)
    collection_times = ""
    for day_group in day_groups:
        if day_group["from_day"] == day_group["to_day"]:
            collection_times += "{from_day} {hours}; ".format(**day_group)
        elif day_group["from_day"] == "Su" and day_group["to_day"] == "Sa":
            collection_times += "{hours}; ".format(**day_group)
        else:
            collection_times += "{from_day}-{to_day} {hours}; ".format(**day_group)
    collection_times = collection_times[:-2]
    return collection_times