[SOLVED] Help with a light timer rule

thanks, I started off with
Design Pattern: Motion Sensor Timer
but I wanted to make it work for the different times of day and the above is the best way that I could think of. if you or anyone else have any ideas or the time to show how too do it more efficiently im really keen too learn.