;ELC ;;; compiled by kwzh@hal.gnu.ai.mit.edu on Tue May 2 20:15:22 1995 ;;; from file /gd/gnu/emacs/19.0/lisp/cal-dst.el ;;; emacs version 19.28.90.69. ;;; bytecomp version FSF 2.10 ;;; optimization is on. ;;; this file uses opcodes which do not exist in Emacs 18. (if (and (boundp 'emacs-version) (or (and (boundp 'epoch::version) epoch::version) (string-lessp emacs-version "19"))) (error "`/gd/gnu/emacs/19.0/lisp/cal-dst.el' was compiled for Emacs 19")) (require (quote calendar)) #@49 Cache for result of calendar-current-time-zone. (defvar calendar-current-time-zone-cache nil (#$ . 510)) #@49 Absolute date of starting date of system clock. (defvar calendar-system-time-basis (byte-code "AA@)S @) A@) AA@)\f S_\\ V] _\\˥Z ɦUT ͦU?T ΦU)]T-\n_\nɥ\nͥ[\nΥ\\\\\\\\*" [(1 1 1970) date prior-years month day year 31 day-of-year 2 4 23 10 0 100 400 365] 7) (#$ . 621)) #@389 Absolute local date of time X; local time is UTC-DIFF seconds from UTC. X is (HIGH . LOW) or (HIGH LOW . IGNORED) where HIGH and LOW are the high and low 16 bits, respectively, of the number of seconds since 1970-01-01 00:00:00 UTC, ignoring leap seconds. Returns the pair (ABS-DATE . SECONDS) where SECONDS after local midnight on absolute date ABS-DATE is the equivalent moment to X. (defalias 'calendar-absolute-from-time #[(x utc-diff) "@A \n\n\n@\\ \"_\f\"\\\n \"_\n\"\\\\\n\"_\f\"\\,B" [x h xtail utc-diff l mod 675 512 floor 128 u calendar-system-time-basis] 5 (#$ . 950)]) #@315 Time of absolute date ABS-DATE, S seconds after midnight. Returns the pair (HIGH . LOW) where HIGH and LOW are the high and low 16 bits, respectively, of the number of seconds 1970-01-01 00:00:00 UTC, ignoring leap seconds, that is the equivalent moment to S seconds after midnight UTC on absolute date ABS-DATE. (defalias 'calendar-time-from-absolute #[(abs-date s) " Z\n\"_\"\\ \n\n\"_ \"\\\\ \"_\"\\*B" [abs-date calendar-system-time-basis a mod 512 163 floor s 128 u] 5 (#$ . 1573)]) #@181 Return the time of the next time zone transition after TIME. Both TIME and the result are acceptable arguments to current-time-zone. Return nil if no such transition can be found. (defalias 'calendar-next-time-zone-transition #[(time) " !@ \n   =A @ @ _\\B  !\n@  A   =? A @eh@BA A\\@ @ \\\\\"Zץ _ \\ץB+!@ = np +." [65536 base 120 quarter-multiple current-time-zone time time-zone time-utc-diff nil hi hi-zone hi-utc-diff (2 1 3) quarters 0 tail lo probe lsum hsum logand 1 hsumodd 2] 5 (#$ . 2094)]) #@220 Return daylight transition rule for ABS-DATE, UTC-DIFF sec offset from UTC. ABS-DIFF must specify a day that contains a daylight savings transition. The result has the proper form for calendar-daylight-savings-starts'. (defalias 'calendar-time-zone-daylight-rules #[(abs-date utc-diff) " ! æ\n@)\nA@)\nAA@)  UP˦UHͦU?HΦU)PςU SH* FCWo\f ȯCZV\f ȯCZ]SZ^TY\f B))$ZT  @!@=!AB!w!@=!A@!w!!$AA@)S%\n@) \nA@)&\nAA@)& S_\\( V^( _\\Z(˦UUͦU?UΦU)^(T((-%_%˥%ͥ[%Υ\\\\\\\\+\n\"!\nT\"!!B A *@CTA*@. " [calendar-gregorian-from-absolute abs-date date 7 weekday m d y year month 2 4 0 100 400 29 [31 28 31 30 31 30 31 31 30 31 30 31] last append list 8 calendar-nth-named-day 1 -1 nil l 6 j candidate-rules utc-diff prevday-sec new-rules rules rule eval calendar-nth-named-absday g prior-years day 31 day-of-year 23 10 365 current-time-zone calendar-time-from-absolute] 11 (#$ . 2735)]) #@1367 Return UTC difference, dst offset, names and rules for current time zone. Returns (UTC-DIFF DST-OFFSET STD-ZONE DST-ZONE DST-STARTS DST-ENDS DST-STARTS-TIME DST-ENDS-TIME), based on a heuristic probing of what the system knows: UTC-DIFF is an integer specifying the number of minutes difference between standard time in the current time zone and Coordinated Universal Time (Greenwich Mean Time). A negative value means west of Greenwich. DST-OFFSET is an integer giving the daylight savings time offset in minutes. STD-ZONE is a string giving the name of the time zone when no seasonal time adjustment is in effect. DST-ZONE is a string giving the name of the time zone when there is a seasonal time adjustment in effect. DST-STARTS and DST-ENDS are sexps in the variable `year' giving the daylight savings time start and end rules, in the form expected by `calendar-daylight-savings-starts'. DST-STARTS-TIME and DST-ENDS-TIME are integers giving the number of minutes after midnight that daylight savings time starts and ends. If the local area does not use a seasonal time adjustment, STD-ZONE and DST-ZONE are equal, and all the DST-* integer variables are 0. Some operating systems cannot provide all this information to Emacs; in this case, `calendar-current-time-zone' returns a list containing nil for the data it can't find. (defalias 'calendar-current-time-zone #[nil " \n!@\fA@ %ljlj\n! 2 !\nH ˥lj̉ ! @ A@ \"\n\"@ \"@\"A˥A˥ ^˥ Z!˥ W. BB*," [calendar-current-time-zone-cache current-time t0 current-time-zone t0-zone t0-utc-diff t0-name nil calendar-next-time-zone-transition t1 t2 60 0 t1-zone t1-utc-diff t1-name calendar-absolute-from-time t1-date-sec t2-date-sec calendar-time-zone-daylight-rules t1-rules t2-rules t1-time t2-time abs] 9 (#$ . 3881)]) (calendar-current-time-zone) #@191 *Number of minutes difference between local standard time at `calendar-location-name' and Coordinated Universal (Greenwich) Time. For example, -300 for New York City, -480 for Los Angeles. (defvar calendar-time-zone (byte-code "@" [calendar-current-time-zone-cache -300] 1) (#$ . -5849)) #@141 *Number of minutes difference between daylight savings and standard time. If the locale never uses daylight savings time, set this to 0. (defvar calendar-daylight-time-offset (byte-code "A@" [calendar-current-time-zone-cache 60] 1) (#$ . -6151)) #@130 *Abbreviated name of standard time zone at `calendar-location-name'. For example, "EST" in New York City, "PST" for Los Angeles. (defvar calendar-standard-time-zone-name (byte-code "AA@" [calendar-current-time-zone-cache "EST"] 1) (#$ . -6413)) #@138 *Abbreviated name of daylight-savings time zone at `calendar-location-name'. For example, "EDT" in New York City, "PDT" for Los Angeles. (defvar calendar-daylight-time-zone-name (byte-code " @‡" [3 calendar-current-time-zone-cache "EDT"] 2) (#$ . -6671)) (put (quote calendar-daylight-savings-starts) (quote risky-local-variable) t) #@690 *Sexp giving the date on which daylight savings time starts. This is an expression in the variable `year' whose value gives the Gregorian date in the form (month day year) on which daylight savings time starts. It is used to determine the starting date of daylight savings time for the holiday list and for correcting times of day in the solar and lunar calculations. For example, if daylight savings time is mandated to start on October 1, you would set `calendar-daylight-savings-starts' to '(10 1 year) If it starts on the first Sunday in April, you would set it to '(calendar-nth-named-day 1 0 4 year) If the locale never uses daylight savings time, set this to nil. (defvar calendar-daylight-savings-starts (byte-code " @\nU?ć" [4 calendar-current-time-zone-cache calendar-daylight-time-offset 0 (calendar-nth-named-day 1 0 4 year)] 2) (#$ . -7017)) (put (quote calendar-daylight-savings-ends) (quote risky-local-variable) t) #@553 *Sexp giving the date on which daylight savings time ends. This is an expression in the variable `year' whose value gives the Gregorian date in the form (month day year) on which daylight savings time ends. It is used to determine the starting date of daylight savings time for the holiday list and for correcting times of day in the solar and lunar calculations. For example, if daylight savings time ends on the last Sunday in October: '(calendar-nth-named-day -1 0 10 year) If the locale never uses daylight savings time, set this to nil. (defvar calendar-daylight-savings-ends (byte-code " @\nU?ć" [5 calendar-current-time-zone-cache calendar-daylight-time-offset 0 (calendar-nth-named-day -1 0 10 year)] 2) (#$ . -7983)) #@70 *Number of minutes after midnight that daylight savings time starts. (defvar calendar-daylight-savings-starts-time (byte-code " @‡" [6 calendar-current-time-zone-cache 120] 2) (#$ . -8735)) #@68 *Number of minutes after midnight that daylight savings time ends. (defvar calendar-daylight-savings-ends-time (byte-code " @\n" [7 calendar-current-time-zone-cache calendar-daylight-savings-starts-time] 2) (#$ . -8937)) (provide (quote cal-dst))