Function: diary-offset
diary-offset is a byte-compiled function defined in diary-lib.el.gz.
Signature
(diary-offset SEXP DAYS)
Documentation
Offsetted diary entry. Offsets SEXP by DAYS days.
Entry applies if the date is DAYS days after another diary-sexp SEXP.
Probably introduced at or before Emacs version 28.1.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/diary-lib.el.gz
;; To be called from diary-sexp-entry, where DATE, ENTRY are bound.
(defun diary-offset (sexp days)
"Offsetted diary entry. Offsets SEXP by DAYS days.
Entry applies if the date is DAYS days after another diary-sexp SEXP."
(with-no-warnings (defvar date))
(unless (integerp days)
(user-error "Days must be an integer"))
(let ((date (calendar-gregorian-from-absolute
(- (calendar-absolute-from-gregorian date) days))))
(eval sexp)))