DTR-20/20M, which has a real time clock, is an electronic timer that calculates the sunset and sunrise periods automatically. It is designed for controlling the devices which are connected to its contacts according to sunset, sunrise and the time periods which are programmed by the user.