How long can milk sit out before it spoils?

Milk can sit out no longer than thirty minutes. If it warms then is put back in to get cold, It will sour.