Some time ago I found this - a small algorithm implemented in MSP430 with photoresistor to synchronise with the sun. Search for "Intelligent Dusk/Dawn Light Sensor" Richard S. LaBarbera. Of couse, you asked for a true hardware solution, but maybe this is interesting for you. Matthias