The time you spend sleeping overnight or during the day is all a part of the period during which your body is not digesting any food, during a fast.