Sleeping is fasting, that's why the first meal of the day is called break/fast. It only takes about 6-8 hours for food to be digested, when you aren't digesting, you're fasting. Skipping a meal is fasting, doesn't matter if you're hungry or not, if you aren't digesting, you're fasting.