Function: calendar-extract-month
calendar-extract-month is a byte-compiled function defined in
calendar.el.gz.
Signature
(calendar-extract-month DATE)
Documentation
Extract the month part of DATE which has the form (month day year).
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/calendar.el.gz
;; The following are in-line for speed; they can be called thousands of times
;; when looking up holidays or processing the diary. Here, for example, are
;; the numbers of calls to calendar/diary/holiday functions in preparing the
;; fancy diary display, for a moderately complex diary file, with functions
;; used instead of macros. There were a total of 10000 such calls:
;;
;; 1934 calendar-extract-month
;; 1852 calendar-extract-year
;; 1819 calendar-extract-day
;; 845 calendar-leap-year-p
;; 837 calendar-day-number
;; 775 calendar-absolute-from-gregorian
;; 346 calendar-last-day-of-month
;; 286 calendar-hebrew-last-day-of-month
;; 188 calendar-hebrew-leap-year-p
;; 180 calendar-hebrew-elapsed-days
;; 163 calendar-hebrew-last-month-of-year
;; 66 calendar-date-compare
;; 65 calendar-hebrew-days-in-year
;; 60 calendar-julian-to-absolute
;; 50 calendar-hebrew-to-absolute
;; 43 calendar-date-equal
;; 38 calendar-gregorian-from-absolute
;; .
;;
;; The use of these seven macros eliminates the overhead of 92% of the function
;; calls; it's faster this way.
(defsubst calendar-extract-month (date)
"Extract the month part of DATE which has the form (month day year)."
(car date))