def valid_time(time):
    """Checks whether a time object satisfies the invariants

    :param time:
    :return: bollean
    """
    if time.hour < 0 or time.minute < 0 or time.second < 0 :
        return False
    if time.minute > 59 or time.second > 59:
        return False
    return True