Function: calendar-dst-starts

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

Signature

(calendar-dst-starts YEAR)

Documentation

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

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-starts (year)
  "Return the date of YEAR on which daylight saving time starts.
This function respects the value of `calendar-dst-check-each-year-flag'."
  (or (let ((expr (if calendar-dst-check-each-year-flag
                      (cadr (calendar-dst-find-startend year))
                    (nth 4 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 2 0 3 year))))