def parse_cu_time(cu_time):
    """
    Parse times given in hhmm or hmm format into the hh:mm format used
    by Hyperschedule.
    """
    hours, minutes = cu_time[:-2], cu_time[-2:]
    return "{:02d}:{:02d}".format(int(hours), int(minutes))