import time


def get_minutes(hour:str) -> int:
    """ Get total number of minutes from time in %H:%M .

    Args:
        hour (str): String containing time in 24 hour %H:%M format

    Returns:
        int: Returns total number of minutes
    """
    t = time.strptime(hour, '%H:%M')
    minutes = t[3] * 60 + t[4]
    return minutes