time stamp of light turning on, and write to file