I don't know about the melatonin (I don't like taking anything other than a multivitamin nutritional safety net), but, as bedtime approaches, I like a dim orange light, and to use color temperature changing software/settings on screens. http://jonls.dk/redshift/