Function: icalendar-rrule-weekstart
icalendar-rrule-weekstart is a byte-compiled function defined in
icalendar-parser.el.gz.
Signature
(icalendar-rrule-weekstart RRULE)
Documentation
Return the weekday which starts the work week in RRULE.
If no starting weekday is specified in RRULE, returns the default,
1 (= Monday).
Other relevant functions are documented in the icalendar group.
Shortdoc
;; icalendar
(icalendar-rrule-weekstart '((FREQ WEEKLY) (UNTIL (12 31 2026)) (WKST 0)))
=> 0
(icalendar-rrule-weekstart '((FREQ WEEKLY) (UNTIL (12 31 2026))))
=> 1
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/icalendar-parser.el.gz
(defun ical:rrule-weekstart (rrule)
"Return the weekday which starts the work week in RRULE.
If no starting weekday is specified in RRULE, returns the default,
1 (= Monday)."
(or (car (alist-get 'WKST rrule)) 1))