;ELC   
;;; compiled by sw@dali on Fri May 31 10:34:52 1996
;;; from file /home/vz/sw/lib/emacs-19/vm-5.72/timezone.el
;;; emacs version 19.29.2.
;;; 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.28.90")))
    (error "`timezone.el' was compiled for Emacs 19.29 or later"))


(provide (quote timezone))
#@217 *Time differentials of timezone from GMT in +-HHMM form.
This list is obsolescent, and is present only for backwards compatibility,
because time zone names are ambiguous in practice.
Use `current-time-zone' instead.
(defvar timezone-world-timezones (quote (("PST" . -800) ("PDT" . -700) ("MST" . -700) ("MDT" . -600) ("CST" . -600) ("CDT" . -500) ("EST" . -500) ("EDT" . -400) ("AST" . -400) ("NST" . -330) ("GMT" . 0) ("BST" . 100) ("MET" . 100) ("EET" . 200) ("JST" . 900) ("GMT+1" . 100) ("GMT+2" . 200) ("GMT+3" . 300) ("GMT+4" . 400) ("GMT+5" . 500) ("GMT+6" . 600) ("GMT+7" . 700) ("GMT+8" . 800) ("GMT+9" . 900) ("GMT+10" . 1000) ("GMT+11" . 1100) ("GMT+12" . 1200) ("GMT+13" . 1300) ("GMT-1" . -100) ("GMT-2" . -200) ("GMT-3" . -300) ("GMT-4" . -400) ("GMT-5" . -500) ("GMT-6" . -600) ("GMT-7" . -700) ("GMT-8" . -800) ("GMT-9" . -900) ("GMT-10" . -1000) ("GMT-11" . -1100) ("GMT-12" . -1200))) (#$ . -496))
#@75 Alist of first three letters of a month and its numerical representation.
(defvar timezone-months-assoc (quote (("JAN" . 1) ("FEB" . 2) ("MAR" . 3) ("APR" . 4) ("MAY" . 5) ("JUN" . 6) ("JUL" . 7) ("AUG" . 8) ("SEP" . 9) ("OCT" . 10) ("NOV" . 11) ("DEC" . 12))) (#$ . 1418))
#@260 Convert DATE to an arpanet standard date.
Optional 1st argument LOCAL specifies the default local timezone of the DATE;
if nil, GMT is assumed.
Optional 2nd argument TIMEZONE specifies a time zone to be represented in;
if nil, the local time zone is assumed.
(defalias 'timezone-make-date-arpa-standard #[(date &optional local timezone) "À	\n#Å\fÆH\fÇH\fÈHÉ\fÊH\fËH\fÌH#\fÍH%)‡" [timezone-fix-time date local timezone new timezone-make-arpa-date 0 1 2 timezone-make-time-string 3 4 5 6] 9 (#$ . 1699)])
#@257 Convert DATE to a sortable date string.
Optional 1st argument LOCAL specifies the default local timezone of the DATE;
if nil, GMT is assumed.
Optional 2nd argument TIMEZONE specifies a timezone to be represented in;
if nil, the local time zone is assumed.
(defalias 'timezone-make-date-sortable #[(date &optional local timezone) "À	\n#Å\fÆH\fÇH\fÈHÉ\fÊH\fËH\fÌH#$)‡" [timezone-fix-time date local timezone new timezone-make-sortable-date 0 1 2 timezone-make-time-string 3 4 5] 9 (#$ . 2211)])
#@118 Make arpanet standard date string from YEAR, MONTH, DAY, and TIME.
Optional argument TIMEZONE specifies a time zone.
(defalias 'timezone-make-arpa-date #[(year month day time &optional timezone) "<ƒ. Á!‰ÃWƒ \n[‚ \nÅÆ\nÃWƒ\" Ç‚# È\fÉ¥\fÉ¦$*‚/ \nÅË\fÍÎ\"@!\n&)‡" [timezone timezone-zone-to-minute m 0 absm format "%c%02d%02d" 45 43 60 zone "%02d %s %04d %s %s" day capitalize rassq month timezone-months-assoc year time] 8 (#$ . 2713)])
#@60 Make sortable date string from YEAR, MONTH, DAY, and TIME.
(defalias 'timezone-make-sortable-date #[(year month day time) "ÀÁ\n\f%‡" [format "%4d%02d%02d%s" year month day time] 6 (#$ . 3173)])
#@49 Make time string from HOUR, MINUTE, and SECOND.
(defalias 'timezone-make-time-string #[(hour minute second) "ÀÁ\n\f$‡" [format "%02d:%02d:%02d" hour minute second] 5 (#$ . 3375)])
#@341 Parse DATE and return a vector [YEAR MONTH DAY TIME TIMEZONE].
19 is prepended to year if necessary.  Timezone may be nil if nothing.
Understands the following styles:
 (1) 14 Apr 89 03:20[:12] [GMT]
 (2) Fri, 17 Mar 89 4:01[:33] [GMT]
 (3) Mon Jan 16 16:12[:37] [GMT] 1989
 (4) 6 May 1992 1641-JST (Wednesday)
 (5) 22-AUG-1993 10:59:12.82
(defalias 'timezone-parse-date #[(date) "† ÁÂ‰‰‰‰ÈÉ\"ƒ( ÊËÌÍÂ‚“ ÈÎ\"ƒ> ÊËÌÍÏ‚“ ÈÐ\"ƒT ÍÌËÊÂ‚“ ÈÑ\"ƒj ÏÌËÊÍ‚“ ÈÒ\"ƒ€ ÊËÌÍÏ‚“ ÈÓ\"ƒ“ ÊËÌÍÂƒÔ ”•O‰GÍWƒ² ÔÕÂOPÖ×””Ê\\O–\"A!”•O\f”\f•Oƒß ”•Oƒð Ù\f%‚÷ ÙÚ‰‰‰Â%.‡" [date "" nil zone time day month year string-match "\\([0-9]+\\)[ 	]+\\([^ 	,]+\\)[ 	]+\\([0-9]+\\)[ 	]+\\([0-9]+:[0-9:]+\\)[ 	]*\\'" 3 2 1 4 "\\([0-9]+\\)[ 	]+\\([^ 	,]+\\)[ 	]+\\([0-9]+\\)[ 	]+\\([0-9]+:[0-9:]+\\)[ 	]*\\([-+a-zA-Z0-9]+\\)" 5 "\\([^ 	,]+\\)[ 	]+\\([0-9]+\\)[ 	]+\\([0-9]+:[0-9:]+\\)[ 	]+\\([0-9]+\\)" "\\([^ 	,]+\\)[ 	]+\\([0-9]+\\)[ 	]+\\([0-9]+:[0-9:]+\\)[ 	]+\\([-+a-zA-Z0-9]+\\)[ 	]+\\([0-9]+\\)" "\\([0-9]+\\)[ 	]+\\([^ 	,]+\\)[ 	]+\\([0-9]+\\)[ 	]+\\([0-9]+\\)[ 	]*\\([-+a-zA-Z0-9]+\\)" "\\([0-9]+\\)-\\([A-Za-z]+\\)-\\([0-9]+\\)[ 	]+\\([0-9]+:[0-9]+:[0-9]+\\)\\.[0-9]+" "19" -2 int-to-string assoc timezone-months-assoc vector "0"] 7 (#$ . 3563)])
#@106 Parse TIME (HH:MM:SS) and return a vector [hour minute second].
Recognize HH:MM:SS, HH:MM, HHMMSS, HHMM.
(defalias 'timezone-parse-time #[(time) "† ÁÂ‰‰ÆÇ\"ƒ ÈÉÊ‚I ÆË\"ƒ, ÈÉÂ‚I ÆÌ\"ƒ< ÈÉÊ‚I ÆÍ\"ƒI ÈÉÂÎƒW ”•O‚X Ï\fƒe \f”\f•O‚f Ïƒs ”•O‚t Ï#,‡" [time "" nil second minute hour string-match "\\`\\([0-9]+\\):\\([0-9]+\\):\\([0-9]+\\)\\'" 1 2 3 "\\`\\([0-9]+\\):\\([0-9]+\\)\\'" "\\`\\([0-9][0-9]\\)\\([0-9][0-9]\\)\\([0-9][0-9]\\)\\'" "\\`\\([0-9][0-9]\\)\\([0-9][0-9]\\)\\'" vector "0"] 6 (#$ . 4887)])
#@185 Translate TIMEZONE to an integer minute offset from GMT.
TIMEZONE can be a cons cell containing the output of current-time-zone,
or an integer of the form +-HHMM, or a time zone name.
(defalias 'timezone-zone-to-minute #[(timezone) ":ƒ\n @Á¥‡ƒC Â–\"A† ‰;ƒ\" Ä!Å!‰Ç¥Á_Ç¦\\ÉWƒ? [‚A *‡É‡" [timezone 60 assoc timezone-world-timezones string-to-int timezone-abs abszone 100 minutes 0] 4 (#$ . 5426)])
#@279 Compute the UTC time equivalent to DATE at time SECONDS after midnight.
Return a list suitable as an argument to current-time-zone,
or nil if the date cannot be thus represented.
DATE is the number of days elapsed since the (imaginary)
Gregorian date Sunday, December 31, 1 BC.
(defalias 'timezone-time-from-absolute #[(date seconds) "À\n	ZÄÅ!_\\ÄÈ!	Ê	¥!‰	_\fÊ\fZ!Î\f\\Z!ÏW…E B.‡" [719162 current-time-origin date days float 86400 seconds-per-day seconds 65536 current-time-arithmetic-base timezone-floor hi hibase lo timezone-abs 2] 5 (#$ . 5851)])
#@286 Compute the local time zone for DATE at time SECONDS after midnight.
Return a list in the same format as current-time-zone's result,
or nil if the local time zone could not be computed.
DATE is the number of days elapsed since the (imaginary)
Gregorian date Sunday, December 31, 1 BC.
(defalias 'timezone-time-zone-from-absolute #[(date seconds) "ÀÁ!… Â\f\"‰… Á!‰@… ))‡" [fboundp current-time-zone timezone-time-from-absolute date seconds utc-time zone] 4 (#$ . 6442)])
#@162 Convert DATE (default timezone LOCAL) to YYYY-MM-DD-HH-MM-SS-ZONE vector.
If LOCAL is nil, it is assumed to be GMT.
If TIMEZONE is nil, use the local time zone.
(defalias 'timezone-fix-time #[(date local timezone) "À	!Â	ÃH!‰ÅWƒ \fÆ\\‚ \fÂ	ÇH!Â	ÉH!\nË	ÌH!ÂÃH!ÂÇH!ÂÉH!	ÑH†M †i ÔÕ\n\f#Ö_\\Ö_\\\"×!×!Z\\ÙÖ\"\\Ö_ZÛXƒÉ ÛZ\nT\nÜ\f\"\nWƒû TÇ\nÝWƒû Ç\fT‚û ÃVƒû Û\\\nS\nÇ\nVƒû SÇVƒô Ý\fSÜ\f\"\nÞ\f\n&.‡" [timezone-parse-date date string-to-int 0 year 100 1900 1 month 2 day timezone-parse-time 3 time hour minute second 4 local timezone timezone-time-zone-from-absolute timezone-absolute-from-gregorian 60 timezone-zone-to-minute diff timezone-floor hour-fix 24 timezone-last-day-of-month 12 vector] 9 (#$ . 6929)])
#@36 The last day in MONTH during YEAR.
(defalias 'timezone-last-day-of-month #[(month year) "ÁUƒ Â!ƒ Ä‡ÅSH‡" [month 2 timezone-leap-year-p year 29 [31 28 31 30 31 30 31 31 30 31 30 31]] 2 (#$ . 7763)])
#@45 Returns t if YEAR is a Gregorian leap year.
(defalias 'timezone-leap-year-p #[(year) "Á¦ÂUƒ Ã¦ÂU?† Ä¦ÂU‡" [year 4 0 100 400] 2 (#$ . 7972)])
#@67 Return the day number within the year of the date month/day/year.
(defalias 'timezone-day-number #[(month day year) "	SÂ_\\	ÄVƒ! 	Å_Æ\\Ç¥ZÈ	!ƒ! T)‡" [day month 31 day-of-year 2 4 23 10 timezone-leap-year-p year] 3 (#$ . 8124)])
#@137 The number of days between the Gregorian date 12/31/1 BC and month/day/year.
The Gregorian date Sunday, December 31, 1 BC is imaginary.
(defalias 'timezone-absolute-from-gregorian #[(month day year) "À	\n#SÄ_SÅ¥SÆ¥[SÇ¥\\\\\\\\‡" [timezone-day-number month day year 365 4 100 400] 6 (#$ . 8367)])
(defalias 'timezone-abs #[(n) "ÀÁ!ƒ\n Á\n!‡\nÃWƒ \n[‡\n‡" [fboundp abs n 0] 2])
(defalias 'timezone-floor #[(n &optional divisor) "ÀÁ!ƒ Á\n\"‡„ Ä\nÅWƒ  \nZÄZ¥[‡\n¥‡" [fboundp floor n divisor 1 0] 3])
