Assuming you are referring to food that is meant to be cooked before consumption, the length of time it can sit out depends on the temperature. If it is above 90 degrees Fahrenheit, then food should not be left out for more than an hour. If it is between 40 and 140 degrees Fahrenheit, then food can be left out for up to four hours. However, if the temperature is below 40 degrees Fahrenheit, then food should not be left out for more than two hours.