Function: diary-time-block

diary-time-block is a byte-compiled function defined in diary-icalendar.el.gz.

Signature

(diary-time-block &key START END)

Documentation

Diary S-expression for time blocks.

Entry applies if the queried date occurs between START and END, inclusive. START and END may be icalendar-date or icalendar-date-time values.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/diary-icalendar.el.gz
;; Display in Diary

;;; Functions implementing diary-icalendar sexps.
;;; TODO: move these to diary-lib.el?

;; To be called from diary-sexp-entry, where DATE, ENTRY are bound.
(cl-defun diary-time-block (&key start end)
  "Diary S-expression for time blocks.

Entry applies if the queried date occurs between START and END,
inclusive.  START and END may be `icalendar-date' or
`icalendar-date-time' values."
  (with-no-warnings (defvar date) (defvar entry))
  (when (and (ical:date/time<= start date) (ical:date/time<= date end))
    entry))