Implementation on ambient light and time tracking luminaires controller from MAXIM Integrated, Link here
This reference design explains how to design an intelligent lighting controller that senses and measures the ambient light level with an ambient light sensor (ALS). Equipped with a real-time clock (RTC), the controller also knows when to turn lighting on or off at specified times.