If a drug test shows positive, can it be proved how long ago the drug was taken?

Saliva, urine and blood only show up a positive or negative result, not how long ago a drug has been taken.