Changeset 4204 for trunk/lisp/calendar/cal-dst.el
- Timestamp:
- 05/01/07 18:04:59 (2 years ago)
- Files:
-
- trunk/lisp/calendar/cal-dst.el (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/calendar/cal-dst.el
r4196 r4204 31 31 ;; This collection of functions implements the features of calendar.el and 32 32 ;; holiday.el that deal with daylight saving time. 33 34 ;; Comments, corrections, and improvements should be sent to35 ;; Edward M. Reingold Department of Computer Science36 ;; (217) 333-6733 University of Illinois at Urbana-Champaign37 ;; reingold@cs.uiuc.edu 1304 West Springfield Avenue38 ;; Urbana, Illinois 6180139 33 40 34 ;;; Code: … … 267 261 respectively. This function first attempts to use pre-calculated 268 262 data from `calendar-dst-transition-cache', otherwise it calls 269 `calendar-dst-find-data' (and adds the results to the cache)." 263 `calendar-dst-find-data' (and adds the results to the cache). 264 If dates in YEAR cannot be handled by `encode-time' (e.g. if they 265 are too large to be represented as a lisp integer), then rather 266 than an error this function returns the result appropriate for 267 the current year." 270 268 (let ((e (assoc year calendar-dst-transition-cache)) 271 269 f) 272 270 (or e 273 271 (progn 274 (setq e (calendar-dst-find-data (encode-time 1 0 0 1 1 year)) 272 (setq e (calendar-dst-find-data 273 (condition-case nil 274 (encode-time 1 0 0 1 1 year) 275 (error 276 (encode-time 1 0 0 1 1 (nth 5 (decode-time)))))) 275 277 f (nth 4 e) 276 278 e (list year f (nth 5 e))
