The present invention generally relates to an electrical timer which automatically controls the activation and deactivation of electrical devices, such as light fixtures, appliances and the like based on the time of sunrise and / or sunset for a particular geographic location. In this regard, the sunrise and / or sunset times for a multitude of different geographic locations is collected and stored in the timer's memory in association with the relevant geographic location. Each geographic location is specified in memory by geographic indicia, such as postal zip code or telephone area code, of its location (e.g., latitude and longitude). The timer of the present invention is programmed to automatically activate and / or deactivate the device to which it is coupled (e.g., lights, appliances, etc.) at the sunset and / or sunrise times stored in memory for each date that is specified in memory.