Function: icalendar-recur-refine-by

icalendar-recur-refine-by is a byte-compiled function defined in icalendar-recur.el.gz.

Signature

(icalendar-recur-refine-by UNIT INTERVAL VALUES &optional BYDAY-INMONTH WEEKSTART VTIMEZONE)

Documentation

Resolve INTERVAL into a list of subintervals matching VALUES for UNIT.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/icalendar-recur.el.gz
;; TODO: should this just become a generic function, with the above
;; refine-by* functions becoming its methods?
(defun icr:refine-by (unit interval values
                      &optional byday-inmonth weekstart vtimezone)
  "Resolve INTERVAL into a list of subintervals matching VALUES for UNIT."
  (cl-case unit
    (BYYEARDAY (icr:refine-byyearday interval values vtimezone))
    (BYWEEKNO (icr:refine-byweekno interval values weekstart vtimezone))
    (BYMONTH (icr:refine-bymonth interval values vtimezone))
    (BYMONTHDAY (icr:refine-bymonthday interval values vtimezone))
    (BYDAY (icr:refine-byday interval values byday-inmonth vtimezone))
    (BYHOUR (icr:refine-byhour interval values vtimezone))
    (BYMINUTE (icr:refine-byminute interval values vtimezone))
    (BYSECOND (icr:refine-bysecond interval values vtimezone))))