def check_time(time, min, max):
    """
    Check time submitted by user to make sure time is correct and follows a correct format
    :param time: time requested by user
    :param min: min possible value
    :param max: max possible value
    :return:
    """
    if int(time) >= min and int(time) <= max:
        return True
    else:
        return False