Weed effects last for up to 8 hours. Weed messes with REM cycles. This means weed should be treated like coffee (no usage after 4pm) and obviously not before going to work. Meaning the best times to smoke are weekends and holidays, preferably right after you wake up at a normal hour (7-8am)
"There is moderate evidence that cannabis or cannabinoids are effective for:
• Improving short-term sleep outcomes in individuals with sleep disturbance associated with obstructive sleep apnea syndrome, fibromyalgia, chronic pain, and multiple sclerosis"
That's not everybody, of course, but it's enough to say that weed can have positive effects on sleep quality.
In the article you cite, cannabis can help when your sleep cycle is _already_ f'ed. But then you have to have a real long talk with yourself and ask why? Why, when there are better medicines to manage sleep disturbance in the short term which actually improves your sleep. (I am genuinely asking, even OTC sleep medicines will work better than weed)
Weed cannot have positive effects for the layperson because it increases time between REM cycles. Again, if your lack of sleep affects your REM cycle (i.e. its already f'd) then you are doing no harm, but you are not doing much good either.
Maybe you missed my original comment. If you are getting a full 8 hours of sleep every night then you should _not_ be drinking caffeine after 4pm. Likewise, you should also NOT drink alcohol before bed. Further, weed, the topic of this thread, should be avoided after 4pm due to its prolonged effects on your body including impact to REM sleep.