An electrical circuit with a built-in clock is a light timer. The timer communicates with the light so that it turns on and off according to the times you choose. These devices come with controls ranging from circular dials to digital settings and are available in several sizes.