Function: calendar-dst-ends

calendar-dst-ends is a byte-compiled function defined in cal-dst.el.gz.

Signature

(calendar-dst-ends YEAR)

Documentation

Return the date of YEAR on which daylight saving time ends.

This function respects the value of calendar-dst-check-each-year-flag.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/cal-dst.el.gz
(defun calendar-dst-ends (year)
  "Return the date of YEAR on which daylight saving time ends.
This function respects the value of `calendar-dst-check-each-year-flag'."
  (or (let ((expr (if calendar-dst-check-each-year-flag
                      (nth 2 (calendar-dst-find-startend year))
                    (nth 5 calendar-current-time-zone-cache))))
        (calendar-dlet ((year year))
          (if expr (eval expr))))
      ;; New US rules commencing 2007.  https://www.iana.org/time-zones
      (and (not (zerop calendar-daylight-time-offset))
           (calendar-nth-named-day 1 0 11 year))))