;ELC ;;; compiled by jwz@thalidomide on Sun Jan 2 02:56:24 1994 ;;; from file /th/jwz/emacs19/lisp/calendar/cal-dst.el ;;; emacs version 19.9 Lucid (beta10). ;;; bytecomp version 2.22; 22-dec-93. ;;; 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 "This file was compiled for Emacs 19.")) (require 'calendar) (defvar calendar-current-time-zone-cache nil "\ Cache for result of calendar-current-time-zone.") (defvar calendar-system-time-basis (byte-code " S_\\ V _\\̥ZʦUΦUϦUT, _ ʥ Υ[ ϥ\\\\\\\\)" [1969 prior-years 1 month day 1970 year 31 day-of-year 2 4 23 10 0 100 400 365] 6) "\ Absolute date of starting date of system clock.") (fset 'calendar-absolute-from-time #[(x utc-diff) "@A \n\n\n@\\ \"_ \"\\\n \"_\n\"\\\\\n\"_ \"\\,B" [x h xtail utc-diff l mod 675 512 floor 128 u calendar-system-time-basis] 5 "\ 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."]) (fset '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 "\ 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."]) (fset 'calendar-next-time-zone-transition #[(time) " !@ \n   = @ @ _\\B  !\n@  A [  =? A @@BA A\\@ @ \\\\\"Zץ _ \\ץB+!@ = 50 +." [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 "\ 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."]) (fset 'calendar-time-zone-daylight-rules #[(abs-date utc-diff) " ! æ\n@\nA@\nAA@ UɦU˦U̦Uͪ SH FCW үCZV үCZ]SZ^TY B`))$ZT@ @= AB!> @= A@! !#AA@S$#@%#A@&#AA@&%S_\\(%V(%_\\Z(ɦU˦U̦U(T((,$_$ɥ$˥[$̥\\\\\\\\*\n\"!\nT\"! BA*@CTA*@. " [calendar-gregorian-from-absolute abs-date date 7 weekday m d y 2 4 0 100 400 29 [31 28 31 30 31 30 31 31 30 31 30 31] last append list year 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 month day 31 day-of-year 23 10 365 current-time-zone calendar-time-from-absolute] 11 "\ 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'."]) (fset 'calendar-current-time-zone #[nil " \n!@ A@ ljlj\n!  !\n ˥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 "\ 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."]) (calendar-current-time-zone) (defvar calendar-time-zone (byte-code "@" [calendar-current-time-zone-cache -300] 1) "\ *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-daylight-time-offset (byte-code "A@" [calendar-current-time-zone-cache 60] 1) "\ *Number of minutes difference between daylight savings and standard time. If the locale never uses daylight savings time, set this to 0.") (defvar calendar-standard-time-zone-name (byte-code "AA@" [calendar-current-time-zone-cache "EST"] 1) "\ *Abbreviated name of standard time zone at `calendar-location-name'. For example, \"EST\" in New York City, \"PST\" for Los Angeles.") (defvar calendar-daylight-time-zone-name (byte-code " @‡" [3 calendar-current-time-zone-cache "EDT"] 2) "\ *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-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) "\ *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-ends (byte-code " @\nU?ć" [5 calendar-current-time-zone-cache calendar-daylight-time-offset 0 (calendar-nth-named-day -1 0 10 year)] 2) "\ *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-starts-time (byte-code " @‡" [6 calendar-current-time-zone-cache 120] 2) "\ *Number of minutes after midnight that daylight savings time starts.") (defvar calendar-daylight-savings-ends-time (byte-code " @\n" [7 calendar-current-time-zone-cache calendar-daylight-savings-starts-time] 2) "\ *Number of minutes after midnight that daylight savings time ends.") (provide 'cal-dst)