If you’re healthy and you’ve already been eating well for a while, then eating less for a couple of hours a day should be fine, provided you’re still eating enough total calories.
assistant
There’s not much good information on how to do intermittent fasting.  The best sources I found are this review article from Scientific American, and this article in the UK Times.   I’m not sure if they’re accurate though.  Can I be clear: You have the goal of doing this with the intention of losing weight, right?
assistant
I am thinking about starting intermittent fasting.  What do I need to know?
user
It depends on what you mean by "intermittent fasting" (IF).  If you’re talking about the 5:2 diet, then what you really need to know is that there’s no good scientific evidence that it helps with weight loss.
assistant
What is the 5:2 diet?
user
It’s a variant of the ketogenic diet, in which you eat normally five days a week, but eat only 500 calories on the other two days.
assistant
I was thinking more about eating during a particular window of the day.
user
OK, let me look that up.  Hmm, it seems like eating less for a couple of hours and then eating normal for the rest of the day is more likely to help you lose weight.  That’s called “Intermittent Fasting”.
assistant
Yes, how do I do it?
user