A method and device that controls one or more apparatus in relation to the expected
time of sunrise and sunset at the location of the apparatus. The operator enters
a geographic location identifier, such as a zip code or telephone area code, and
the controller computes the expected time of sunrise and sunset at the corresponding
geographic location. The controller is configured to translate the entered geographic
location code into the offset times, based upon the latitude and longitude of the
location. The controller is able to either directly retrieve stored time offsets
or it retrieves the latitude and longitude that corresponds to the entered geographic
location code and determines the time offset from that latitude and longitude.