Function: icalendar--get-month-number

icalendar--get-month-number is a byte-compiled function defined in icalendar.el.gz.

This function is obsolete since 31.1.

Signature

(icalendar--get-month-number MONTHNAME)

Documentation

Return the month number for the given MONTHNAME.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/icalendar.el.gz
(defun icalendar--get-month-number (monthname)
  "Return the month number for the given MONTHNAME."
  (declare (obsolete nil "31.1"))
  (catch 'found
    (let ((num 1)
          (m (downcase monthname)))
      (mapc (lambda (month)
              (let ((mm (downcase month)))
                (if (or (string-equal mm m)
                        (string-equal (substring mm 0 3) m))
                    (throw 'found num))
                (setq num (1+ num))))
            calendar-month-name-array))
    ;; Error:
    -1))