from datetime import datetime


def get_title_date_span(day_range):
    """ Helper to build the string fragment stating time span in titles. """
    return str(
        datetime.strptime(str(day_range[0]), "%j").strftime("%B %-d")
        + "—"
        + datetime.strptime(str(day_range[1]), "%j").strftime("%B %-d")
    )