Diarrhea can occur between 30 minutes to 8 hours of consuming infected food. This time varies from person to person. Other factors that influence the time difference between ingestion of food and the beginning of an episode of diarrhea include the patient’s age, an underlying gastrointestinal condition, the onset of abdominal pain, the temperature of the environment, mental stress, and the amount of water intake.