Function: org-agenda-sunrise-sunset
org-agenda-sunrise-sunset is an interactive and byte-compiled function
defined in org-agenda.el.gz.
Signature
(org-agenda-sunrise-sunset ARG)
Documentation
Display sunrise and sunset for the cursor date.
Latitude and longitude can be specified with the variables
calendar-latitude(var)/calendar-latitude(fun) and calendar-longitude(var)/calendar-longitude(fun). When called with prefix
argument, latitude and longitude will be prompted for.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-agenda.el.gz
(defvar calendar-location-name) ; defined in calendar.el
(defun org-agenda-sunrise-sunset (arg)
"Display sunrise and sunset for the cursor date.
Latitude and longitude can be specified with the variables
`calendar-latitude' and `calendar-longitude'. When called with prefix
argument, latitude and longitude will be prompted for."
(interactive "P")
(require 'solar)
(let ((calendar-longitude (if arg nil calendar-longitude))
(calendar-latitude (if arg nil calendar-latitude))
(calendar-location-name
(if arg "the given coordinates" calendar-location-name)))
(org-agenda-execute-calendar-command 'calendar-sunrise-sunset)))