It is safe to leave rice in the rice cooker for a few hours, but don't leave it for more than 10 to 12 hours. But it's safe to leave rice for that long if the keep-warm function keeps the rice at a temperature above 140 degrees Fahrenheit.