def get_video_daytime(file_name):
    """Extracts daytime when video was recorded from filename

    Arguments:
        file_name: The name of the file
    returns hour, minutes of the video when it was recorded
    """
    if file_name.find("FrontColor") != -1:
        time_stop_pos = file_name.find("FrontColor")
    elif file_name.find("BackColor") != -1:
        time_stop_pos = file_name.find("BackColor")

    else:
        raise FileNotFoundError("Not a valid file")

    hour = int(file_name[time_stop_pos - 8 : time_stop_pos - 6])
    minutes = int(file_name[time_stop_pos - 5 : time_stop_pos - 3])

    return hour, minutes