Function: org-bbdb-date-list

org-bbdb-date-list is a byte-compiled function defined in ol-bbdb.el.gz.

Signature

(org-bbdb-date-list D N)

Documentation

Return list of dates in (m d y) format from the given date D to n-1 days hence.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ol-bbdb.el.gz
;;; Return the list of anniversaries for today and the next n-1
;;; (default: n=7) days.  This is meant to be used in an org file
;;; instead of org-bbdb-anniversaries:
;;;
;;; %%(org-bbdb-anniversaries-future)
;;;
;;; or
;;;
;;; %%(org-bbdb-anniversaries-future 3)
;;;
;;; to override the 7-day default.

(defun org-bbdb-date-list (d n)
  "Return list of dates in (m d y) format from the given date D to n-1 days hence."
  (let ((abs (calendar-absolute-from-gregorian d)))
    (mapcar (lambda (i) (calendar-gregorian-from-absolute (+ abs i)))
	    (number-sequence 0 (1- n)))))