Maybe I'm reading this wrong, but why don't you feed the timeclock, set to go off at midnight and come on at noon. After the timeclock feed the photocell and have it feed the lights. The lights will come on at dusk based on the photcell and go off at midnight with the timer.