(lemacs.info)Sunrise/Sunset


Next: Lunar Phases Prev: Holidays Up: Calendar/Diary

Times of Sunrise and Sunset
---------------------------

   Emacs can tell you, to within a minute or two, the times of sunrise
and sunset for any date, if floating point is available.

`S'
     Display times of sunrise and sunset for the date indicated by point
     (`calendar-sunrise-sunset').

`M-x sunrise-sunset'
     Display times of sunrise and sunset for today's date.

   Move point to the date you want, and type `S', to display the *local
times* of sunrise and sunset in the echo area.

   You can display the times of sunrise and sunset for the current date
even if you don't have a calendar window.  Use the command `M-x
sunrise-sunset'.  If you want the times of sunrise and sunset for a
different date, use `C-u M-x sunrise-sunset' and type the year, month,
and day.

   Because the times of sunrise and sunset depend on the location on
earth, you need to tell Emacs your latitude, longitude, and location
name.  Here is an example of what to set:

     (setq calendar-latitude 40.1)
     (setq calendar-longitude -88.2)
     (setq calendar-location-name "Urbana, IL")

Use one decimal place in the values of `calendar-latitude' and
`calendar-longitude'.

   Your time zone also affects the local time of sunrise and sunset.
Emacs usually gets this information from the operating system, but if
these values are not what you want (or if the operating system does not
supply them), you'll need to set them yourself, like this:

     (setq calendar-time-zone -360)
     (setq calendar-standard-time-zone-name "CST")
     (setq calendar-daylight-time-zone-name "CDT")

The value of `calendar-time-zone' is the number of minutes difference
between your local standard time and Universal Time (Greenwich time).
The values of `calendar-standard-time-zone-name' and
`calendar-daylight-time-zone-name' are the abbreviations used in your
time zone.

   Emacs displays the times of sunrise and sunset *corrected for
daylight savings time* (this convenience is unusual; most tables of
sunrise and sunset use standard time).  The default rule for the
starting and stopping dates of daylight savings time is the American
rule.  Note: Daylight Savings

   You can display the times of sunrise and sunset for any location and
any date with `C-u C-u M-x sunrise-sunset'.  Emacs asks you for a
longitude, latitude, number of minutes difference from Universal time,
and date, and then tells you the times of sunrise and sunset for that
location on that date.  The times are usually given in the echo area,
but if the message is too long fit in one line, they are displayed in a
separate window.


automatically generated by info2www