A light sensor and a timer have active low outputs. The light sensor, which is active when it is dark, monitors the outdoor light and the timer can be programmed to any time. Design the logic to turn on an indoor light if it is dark outside and the timer has set the enable. A high turns on the light.