“The impact it has on our sleep depends on the time of day that you take it,” said Dr. Martin, who is also a spokeswoman for the American Academy of Sleep Medicine. “If you took a sleeping pill in the middle of the day, it would make you feel sleepy. If you took melatonin in…