Key points from article :
Drinking coffee or tea just before bed does not affect the quality of sleep.
Research monitored 785 peoples consumption of caffeine, alcohol and nicotine for a total of 5,164 days.
Nicotine is the substance most strongly associated with sleep disruption.
Nightly nicotine use is associated with an average 42.47-minute reduction in sleep duration.
Research is done by Florida Atlantic University and Harvard Medical School.
The study was published in European Journal of Epidemiology.