Function: calendar-day-of-week

calendar-day-of-week is a byte-compiled function defined in calendar.el.gz.

Signature

(calendar-day-of-week DATE)

Documentation

Return the day-of-the-week index of DATE, 0 for Sunday, 1 for Monday, etc.

DATE is a list of the form (month day year). A negative year is interpreted as BC; -1 being 1 BC, and so on.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/calendar.el.gz
(defun calendar-day-of-week (date)
  "Return the day-of-the-week index of DATE, 0 for Sunday, 1 for Monday, etc.
DATE is a list of the form (month day year).  A negative year is
interpreted as BC; -1 being 1 BC, and so on."
  (mod (calendar-absolute-from-gregorian date) 7))