MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 3.135.236.62
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/emacs/24.3/lisp/calendar/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/emacs/24.3/lisp/calendar/cal-dst.elc
;ELC
;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:08:27 2024
;;; from file /builddir/build/BUILD/emacs-24.3/lisp/calendar/cal-dst.el
;;; in Emacs version 24.3.1
;;; with all optimizations.

;;; This file uses dynamic docstrings, first added in Emacs 19.29.

;;; This file does not contain utf-8 non-ASCII characters,
;;; and so can be loaded in Emacs versions earlier than 23.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


(byte-code "\300\301!\210\302\303\304\305\306\307\310\301&\210\311\312\313\314\315\316\317\320\310\303&	\210\321\322\323\313#\210\311\322\324\325\315\326\310\303&\210\321\327\323\313#\210\311\327\330\331\315\326\310\303&\207" [require calendar custom-declare-group calendar-dst nil "Options related to Daylight Saving Time." :prefix "calendar-" :group custom-declare-variable calendar-dst-check-each-year-flag t "Non-nil means to check each year for DST transitions as needed.\nOtherwise assume the next two transitions found after the\ncurrent date apply to all years.  This is faster, but not always\ncorrect, since the dates of daylight saving transitions sometimes\nchange." :type boolean :version "22.1" put calendar-daylight-savings-starts risky-local-variable '(calendar-dst-starts year) "Sexp giving the date on which daylight saving time starts.\nThis is an expression in the variable `year' whose value gives the Gregorian\ndate in the form (month day year) on which daylight saving time starts.  It is\nused to determine the starting date of daylight saving time for the holiday\nlist and for correcting times of day in the solar and lunar calculations.\n\nFor example, if daylight saving time is mandated to start on October 1,\nyou would set `calendar-daylight-savings-starts' to\n\n      '(10 1 year)\n\nIf it starts on the first Sunday in April, you would set it to\n\n      '(calendar-nth-named-day 1 0 4 year)\n\nIf the locale never uses daylight saving time, set this to nil." sexp calendar-daylight-savings-ends '(calendar-dst-ends year) "Sexp giving the date on which daylight saving time ends.\nThis is an expression in the variable `year' whose value gives the Gregorian\ndate in the form (month day year) on which daylight saving time ends.  It is\nused to determine the starting date of daylight saving time for the holiday\nlist and for correcting times of day in the solar and lunar calculations.\n\nFor example, if daylight saving time ends on the last Sunday in October:\n\n      '(calendar-nth-named-day -1 0 10 year)\n\nIf the locale never uses daylight saving time, set this to nil."] 10)
#@51 Cache for result of `calendar-current-time-zone'.
(defvar calendar-current-time-zone-cache nil (#$ . 2682))
(put 'calendar-current-time-zone-cache 'risky-local-variable t)
#@49 Absolute date of starting date of system clock.
(defvar calendar-system-time-basis (byte-code "\306\211\3078)\310\311\n!\203\312\313!\202j\n\314V\203\223\nS\315\211\211@)\211\211A@*\3078)
S\316_\\\307V\203\317\320_\\\321\245Z\n\211\314W\203`\322\n!S\311\n\320\246!\205v\311\n\323\246!?\206v\311\n\324\246!)\203T-	\325_	\320\245	\323\245[	\324\245%\202j\322\nT!\326\211\211@)\211\211A@*\3078)
S\316_\\\307V\203\367\317\320_\\\321\245Z\n\211\314W\203\330\322\n!S\311\n\320\246!\205\356\311\n\323\246!?\206\356\311\n\324\246!)\203\367T-	\325_	\320\245	\323\245[	\324\245\327\211\327@)\211\211A@*\3078)
S\316_\\\307V\203e\317\320_\\\321\245Z\n\211\314W\203F\322\n!S\311\n\320\246!\205\\\311\n\323\246!?\206\\\311\n\324\246!)\203eT-&+\207" [date offset-years year month x day (1 1 1970) 2 nil zerop error "There was no year zero" 0 + 31 23 4 10 abs 100 400 365 - (12 31 -1) day-of-year] 11) (#$ . 2860))
#@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\247\203\n\202\n@\\\306	\307\"\310_\311\f\312\"\\\313\f\311	\307\"\310_\311
\307\"#\306
\307\"\312_\306\f\312\"\\,B\207" [x h xtail utc-diff l u mod 675 512 floor 128 + calendar-system-time-basis] 6 (#$ . 3882)])
#@313 Time of absolute date ABS-DATE, S seconds after midnight.

Returns the list (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\305\n\306\"\307_\310\311\"\\\312\n\310\n\306\"\307_\310\f\306\"#\305\f\306\"\311_\305\311\"\\*D\207" [abs-date calendar-system-time-basis a s u mod 512 163 floor 128 +] 6 (#$ . 4561)])
#@183 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) "\306\307\310\n!\211@\311\211\f\312\f=\203:\n@@	_\\\313B\310
!\211@A\211\204\f\205\272\205\272\f=?\205\272\nA\n@\247\203\\\202_@B\311A
A\\\314@
@\245#\315\316\"Z\317\245_\246\\\317\245B\232+\204\270\310!@=\203\260\202e\211\202g
+.\207" [base quarter-multiple time time-zone time-utc-diff hi 65536 120 current-time-zone nil (2 1 3) 0 + logand 1 2 hi-zone hi-utc-diff quarters tail lo probe lsum hsum hsumodd] 6 (#$ . 5128)])
(autoload 'calendar-persian-to-absolute "cal-persia")
#@220 Return daylight transition rule for ABS-DATE, UTC-DIFF sec offset from UTC.
ABS-DATE must specify a day that contains a daylight saving transition.
The result has the proper form for `calendar-daylight-savings-starts'.
(defalias 'calendar-time-zone-daylight-rules #[(abs-date utc-diff) "\306!\307\246	\211@)	\211\211A@*	\310	8)00\2111\310U\203^\211\311W\203=\312!S\313\314\246!\205V\313\315\246!?\206V\313\316\246!)\203^\317\202c\3201SH*2\321\21134\322\323
\324BBBC
\325W\205\205\326\327\n\330BBBBC
2\307ZV\205\230\326\331\n\332BBBBC\310
\333Z]S33T\2113
2\325Z^X\203\301\326\327\n\3343\2574B4\202\2404\335U\205\320
\336>\205\320\337\340U\205\335
\341>\205\335\342&5\3316Z70T\32185A\2035\3219\211:\203\366:@\2119@\326=\203\343\3449AB!\202\3229@\306=\203*\3439\211A@)!\202\322\3439!\211\310	8)\321;\313!\203G\345\346!\202\321\311V\203\330S;\347	\211\211@)1	\211\211A@*<	\310	8)<1S\350_\\=1\310V\203\300=\3511\314_\\\352\245Z=\211\311W\203\236\312!S\313\314\246!\205\267\313\315\246!?\206\267\313\316\246!)\203\300=T==-;\353_;\314\245;\315\245[;\316\245%\202\321\312T!;\354	\211\211@)1	\211\211A@*<	\310	8)<1S\350_\\=1\310V\203L=\3511\314_\\\352\245Z=\211\311W\203*\312!S\313\314\246!\205C\313\315\246!?\206C\313\316\246!)\203L=T==-;\353_;\314\245;\315\245[;\316\245\355\211\355@)1	\211\211A@*<	\310	8)<1S\350_\\=1\310V\203\314=\3511\314_\\\352\245Z=\211\311W\203\252\312!S\313\314\246!\205\303\313\315\246!?\206\303\313\316\246!)\203\314=T==-&+\356\357	7\"!\356\357	T7\"!\232\204\35598B8:A\211:\204*8\2038\237\2025@C5\3218T\202\3575@.\f\207" [abs-date date weekday m x d calendar-gregorian-from-absolute 7 2 0 abs zerop 4 100 400 29 [31 28 31 30 31 30 31 31 30 31 30 31] nil append list (year) 8 calendar-nth-named-day 1 (year) -1 (year) 6 year 3 (20 21) ((calendar-gregorian-from-absolute (calendar-persian-to-absolute `(1 1 ,(- year 621))))) 9 (22 23) ((calendar-gregorian-from-absolute (calendar-persian-to-absolute `(7 1 ,(- year 621))))) eval calendar-nth-named-absday error "There was no year zero" + 31 23 10 365 - (12 31 -1) current-time-zone calendar-time-from-absolute y month last j rlist candidate-rules utc-diff prevday-sec new-rules rule --dolist-tail-- offset-years day day-of-year] 11 (#$ . 5945)])
#@166 Find data on the first daylight saving time transitions after TIME.
TIME defaults to `current-time'.  Return value is as described
for `calendar-current-time-zone'.
(defalias 'calendar-dst-find-data #[(&optional time) "\206\306 \307	!\211@\n\211A@)\204&\310\211
\211\310\211\211\211\257\202\300\311	!\211\2053\311!\211\204H\312\245\313
\211\310\211\313\211\257\202\277\307!\211@\211A@)\314\"\314\"\315@\"\315@\"A\312\245A\312\245^\312\245\316Z!\312\245W\203\256
\257\202\273
\257.	BB*,\207" [time t0 t0-zone t0-utc-diff x t0-name current-time current-time-zone nil calendar-next-time-zone-transition 60 0 calendar-absolute-from-time calendar-time-zone-daylight-rules abs t1 t2 t1-zone t1-utc-diff t1-name t1-date-sec t2-date-sec t1-rules t2-rules t1-time t2-time] 9 (#$ . 8424)])
#@308 Internal cal-dst variable storing date of daylight saving time transitions.
Value is a list with elements of the form (YEAR START END), where
START and END are expressions that when evaluated return the
start and end dates (respectively) for DST in YEAR.  Used by the
function `calendar-dst-find-startend'.
(defvar calendar-dst-transition-cache nil (#$ . 9308))
#@592 Find the dates in YEAR on which daylight saving time starts and ends.
Returns a list (YEAR START END), where START and END are
expressions that when evaluated return the start and end dates,
respectively. This function first attempts to use pre-calculated
data from `calendar-dst-transition-cache', otherwise it calls
`calendar-dst-find-data' (and adds the results to the cache).
If dates in YEAR cannot be handled by `encode-time' (e.g. if they
are too large to be represented as a lisp integer), then rather
than an error this function returns the result appropriate for
the current year.
(defalias 'calendar-dst-find-startend #[(year) "\304	\"\305\211\206$\306\305\307\310\217!\3118\n\3128E\313	C\"*\207" [year calendar-dst-transition-cache f e assoc nil calendar-dst-find-data (byte-code "\301\302\303\211\302\211&\207" [year encode-time 1 0] 7) ((error (byte-code "\300\301\302\211\301\211\303\304 8&\207" [encode-time 1 0 5 decode-time] 8))) 4 5 append] 5 (#$ . 9677)])
#@1364 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 saving 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
    saving 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 saving 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 "\206\301 \211\207" [calendar-current-time-zone-cache calendar-dst-find-data] 2 (#$ . 10677)])
(byte-code "\300 \210\301\302\303\304\305\306\307\310&\210\301\311\312\313\305\306\307\310&\210\301\314\315\316\305\317\307\310&\210\301\320\321\322\305\317\307\310&\210\301\323\324\325\305\306\307\310&\210\301\326\327\330\305\306\307\310&\207" [calendar-current-time-zone custom-declare-variable calendar-time-zone (or (car calendar-current-time-zone-cache) -300) "Number of minutes difference between local standard time and UTC.\nFor example, -300 for New York City, -480 for Los Angeles." :type integer :group calendar-dst calendar-daylight-time-offset (or (cadr calendar-current-time-zone-cache) 60) "Number of minutes difference between daylight saving and standard time.\nIf the locale never uses daylight saving time, set this to 0." calendar-standard-time-zone-name (or (nth 2 calendar-current-time-zone-cache) "EST") "Abbreviated name of standard time zone at `calendar-location-name'.\nFor example, \"EST\" in New York City, \"PST\" for Los Angeles." string calendar-daylight-time-zone-name (or (nth 3 calendar-current-time-zone-cache) "EDT") "Abbreviated name of daylight saving time zone at `calendar-location-name'.\nFor example, \"EDT\" in New York City, \"PDT\" for Los Angeles." calendar-daylight-savings-starts-time (or (nth 6 calendar-current-time-zone-cache) 120) "Number of minutes after midnight that daylight saving time starts." calendar-daylight-savings-ends-time (or (nth 7 calendar-current-time-zone-cache) calendar-daylight-savings-starts-time) "Number of minutes after midnight that daylight saving time ends."] 8)
#@136 Return the date of YEAR on which daylight saving time starts.
This function respects the value of `calendar-dst-check-each-year-flag'.
(defalias 'calendar-dst-starts #[(year) "\203\306	!\211A@)\202\3078\211\205\310\f!)\206+\311
!?\205+\312\313\314\315	$\207" [calendar-dst-check-each-year-flag year x calendar-current-time-zone-cache expr calendar-daylight-time-offset calendar-dst-find-startend 4 eval zerop calendar-nth-named-day 2 0 3] 6 (#$ . 13740)])
#@134 Return the date of YEAR on which daylight saving time ends.
This function respects the value of `calendar-dst-check-each-year-flag'.
(defalias 'calendar-dst-ends #[(year) "\203\f\305\306	!8\202\307\n8\211\205\310!)\206(\311\f!?\205(\312\313\314\315	$\207" [calendar-dst-check-each-year-flag year calendar-current-time-zone-cache expr calendar-daylight-time-offset 2 calendar-dst-find-startend 5 eval zerop calendar-nth-named-day 1 0 11] 6 (#$ . 14215)])
#@116 True if on absolute DATE daylight saving time is in effect.
Fractional part of DATE is local standard time of day.
(defalias 'dst-in-effect #[(date) "\306\307!!\3108)\311\n!\311\f!\205\251\211\3108)\312\313	!\203/\314\315!\202\241	\316V\203\267	S\317\211\211@) \211\211!A@*\"\3108)\" S\320_\\# \310V\203\237#\321 \322_\\\323\245Z#	\211\316W\203\200\324	!S\313	\322\246!\205\226\313	\325\246!?\206\226\313	\326\246!)\203\237#T##-\327_\322\245\325\245[\326\245%\202\241\324	T!\330\211\211@) \211\211!A@*\"\3108)\" S\320_\\# \310V\203##\321 \322_\\\323\245Z#	\211\316W\203\324	!S\313	\322\246!\205\313	\325\246!?\206\313	\326\246!)\203##T##-\327_\322\245\325\245[\326\245\331\211\331@) \211\211!A@*\"\3108)\" S\320_\\# \310V\203\234#\321 \322_\\\323\245Z#	\211\316W\203}\324	!S\313	\322\246!\205\223\313	\325\246!?\206\223\313	\326\246!)\203\234#T##-&+\332$\333\334#\\%
\205D
\211\3108)\312\313	!\203\307\314\315!\2029	\316V\203O	S\317\211\211@) \211\211!A@*\"\3108)\" S\320_\\# \310V\2037#\321 \322_\\\323\245Z#	\211\316W\203\324	!S\313	\322\246!\205.\313	\325\246!?\206.\313	\326\246!)\2037#T##-\327_\322\245\325\245[\326\245%\2029\324	T!\330\211\211@) \211\211!A@*\"\3108)\" S\320_\\# \310V\203\273#\321 \322_\\\323\245Z#	\211\316W\203\234\324	!S\313	\322\246!\205\262\313	\325\246!?\206\262\313	\326\246!)\203\273#T##-\327_\322\245\325\245[\326\245\331\211\331@) \211\211!A@*\"\3108)\" S\320_\\# \310V\2034#\321 \322_\\\323\245Z#	\211\316W\203\324	!S\313	\322\246!\205+\313	\325\246!?\206+\313	\326\246!)\2034#T##-&+\332&'Z\335\336#\\(%\205q(\205q%(W\203f%X\205q(W\202q%X\206q(W-\207" [date year calendar-daylight-savings-starts dst-starts-gregorian calendar-daylight-savings-ends dst-ends-gregorian calendar-gregorian-from-absolute floor 2 eval nil zerop error "There was no year zero" 0 + 31 23 4 10 abs 100 400 365 - (12 31 -1) / 60.0 24.0 60.0 24.0 offset-years month x day day-of-year calendar-daylight-savings-starts-time dst-starts calendar-daylight-savings-ends-time calendar-daylight-time-offset dst-ends] 11 (#$ . 14686)])
#@516 Adjust, to account for dst on DATE, decimal fraction standard TIME.
Returns a list (date adj-time zone) where `date' and `adj-time' are the values
adjusted for `zone'; here `date' is a list (month day year), `adj-time' is a
decimal fraction time, and `zone' is a string.

Conversion to daylight saving time is done according to
`calendar-daylight-savings-starts', `calendar-daylight-savings-ends',
`calendar-daylight-savings-starts-time',
`calendar-daylight-savings-ends-time', and `calendar-daylight-time-offset'.
(defalias 'dst-adjust-time #[(date time) "\211\3068)\307\310\n!\203\311\312!\202j\n\313V\203\223\nS\314\211\211@)\211\211A@*\3068)
S\315_\\\"\306V\203\"\316\317_\\\320\245Z\"\n\211\313W\203`\321\n!S\310\n\317\246!\205v\310\n\322\246!?\206v\310\n\323\246!)\203\"T\"\"-	\324_	\317\245	\322\245[	\323\245%\202j\321\nT!\325\211\211@)\211\211A@*\3068)
S\315_\\\"\306V\203\367\"\316\317_\\\320\245Z\"\n\211\313W\203\330\321\n!S\310\n\317\246!\205\356\310\n\322\246!?\206\356\310\n\323\246!)\203\367\"T\"\"-	\324_	\317\245	\322\245[	\323\245\326\211\326@)\211\211A@*\3068)
S\315_\\\"\306V\203e\"\316\317_\\\320\245Z\"\n\211\313W\203F\321\n!S\310\n\317\246!\205\\\310\n\322\246!?\206\\\310\n\323\246!)\203e\"T\"\"-&+\327\330#\331_!\332\333#\\$\334$!\211%\203\207&\202\211'($%\203\233\327)\335\336#\202\234\313\\#\337\340#!!\341#\340#!Z_(E,\207" [date offset-years year month x day 2 nil zerop error "There was no year zero" 0 + 31 23 4 10 abs 100 400 365 - (12 31 -1) / round 60 60.0 24.0 dst-in-effect 24.0 60.0 calendar-gregorian-from-absolute truncate 24.0 day-of-year time rounded-abs-date dst calendar-daylight-time-zone-name calendar-standard-time-zone-name time-zone calendar-daylight-time-offset] 11 (#$ . 16999)])
(provide 'cal-dst)

MMCT - 2023