Function: calendar-get-date-range

calendar-get-date-range is a byte-compiled function defined in calendar.el.gz.

Signature

(calendar-get-date-range &optional FULL)

Documentation

Return a pair of dates corresponding to the range of current calendar.

The day in the date is 1 by default. If optional argument FULL is non-nil, the day in the end date is the last day.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/calendar.el.gz
(defun calendar-get-date-range (&optional full)
  "Return a pair of dates corresponding to the range of current calendar.
The day in the date is 1 by default.  If optional argument FULL is
non-nil, the day in the end date is the last day."
  (pcase-let ((`(,m1 ,y1 ,m2 ,y2) (calendar-get-month-range)))
    (cons
     (list m1 1 y1)
     (list m2 (if full (calendar-last-day-of-month m2 y2) 1) y2))))