def time_from_midnight(update_time: str) -> int:
    """[The time from midnight to the specified time passed to the function, used to repeat events
    effectively]

    Args:
        update_time (str): [The time the event is scheduled]

    Returns:
        int: [The number of seconds it would take from midnight to reach the time specified in
        update_time]
    """
    update_hour = int(update_time[0:2:])
    update_minute = int(update_time[3:5:])

    seconds = ((update_hour*(60*60)) + (update_minute*(60)))
    return seconds