Hi Chris
I was trying to do the same in an atempt to save energy but using both the clock and a photocell I found that the total power used over the 24 hour period was as much as leaving the lamp on all the time. It is a photocell that switches off at a preprogramed time not a number of hours...