I was told that there is tests for HIV which can detect the infection in no time rather than waiting for many weeks is that right?

Rapid HIV Testing. Nationwide, hospitals and clinics are adopting rapid HIV tests that provide results in minutes. This allows immediate counseling and direction to appropriate places for care. Unfortunately these are antibody tests, meaning they require 1-2 wks after exposure to return a positive result. These are highly sensitive tests but false positives are possible and subsequently need confirmatory testing.