?
Current Path : /usr/share/emacs/24.3/lisp/calendar/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/calendar/solar.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:08:30 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/calendar/solar.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\300\302!\210\303\304\305\306\307\310\311\301&\210\303\312\313\314\307\315\311\301&\210\303\316\313\317\307\320\311\301&\210\303\321\322\323\307\310\311\301&\210\303\324\325\326\307\327\311\301&\210\303\330\331\332\307\333\311\301&\210\303\334\335\336\307\337\311\301&\207" [require calendar cal-dst custom-declare-variable calendar-time-display-form '(12-hours ":" minutes am-pm (if time-zone " (") time-zone (if time-zone ")")) "The pseudo-pattern that governs the way a time of day is formatted.\n\nA pseudo-pattern is a list of expressions that can involve the keywords\n`12-hours', `24-hours', and `minutes', all numbers in string form,\nand `am-pm' and `time-zone', both alphabetic strings.\n\nFor example, the form\n\n '(24-hours \":\" minutes\n (if time-zone \" (\") time-zone (if time-zone \")\"))\n\nwould give military-style times like `21:07 (UTC)'." :type sexp :group calendar-latitude nil "Latitude of `calendar-location-name' in degrees.\nThe value can be either a decimal fraction (one place of accuracy is\nsufficient), + north, - south, such as 40.7 for New York City, or the value\ncan be a vector [degrees minutes north/south] such as [40 50 north] for New\nYork City.\n\nThis variable should be set in `site-start'.el." (choice (const nil) (number :tag "Exact") (vector :value [0 0 north] (integer :tag "Degrees") (integer :tag "Minutes") (choice :tag "Position" (const north) (const south)))) calendar-longitude "Longitude of `calendar-location-name' in degrees.\nThe value can be either a decimal fraction (one place of accuracy is\nsufficient), + east, - west, such as -73.9 for New York City, or the value\ncan be a vector [degrees minutes east/west] such as [73 55 west] for New\nYork City.\n\nThis variable should be set in `site-start'.el." (choice (const nil) (number :tag "Exact") (vector :value [0 0 west] (integer :tag "Degrees") (integer :tag "Minutes") (choice :tag "Position" (const east) (const west)))) calendar-location-name '(let ((float-output-format "%.1f")) (format "%s%s, %s%s" (if (numberp calendar-latitude) (abs calendar-latitude) (+ (aref calendar-latitude 0) (/ (aref calendar-latitude 1) 60.0))) (if (numberp calendar-latitude) (if (> calendar-latitude 0) "N" "S") (if (eq (aref calendar-latitude 2) 'north) "N" "S")) (if (numberp calendar-longitude) (abs calendar-longitude) (+ (aref calendar-longitude 0) (/ (aref calendar-longitude 1) 60.0))) (if (numberp calendar-longitude) (if (> calendar-longitude 0) "E" "W") (if (eq (aref calendar-longitude 2) 'east) "E" "W")))) "Expression evaluating to the name of the calendar location.\nFor example, \"New York City\". The default value is just the\nvariable `calendar-latitude' paired with the variable `calendar-longitude'.\n\nThis variable should be set in `site-start'.el." solar-error 0.5 "Tolerance (in minutes) for sunrise/sunset calculations.\n\nA larger value makes the calculations for sunrise/sunset faster, but less\naccurate. The default is half a minute (30 seconds), so that sunrise/sunset\ntimes will be correct to the minute.\n\nIt is useless to set the value smaller than 4*delta, where delta is the\naccuracy in the longitude of the sun (given by the function\n`solar-ecliptic-coordinates') in degrees since (delta/360) x (86400/60) = 4 x\ndelta. At present, delta = 0.01 degrees, so the value of the variable\n`solar-error' should be at least 0.04 minutes (about 2.5 seconds)." number solar-n-hemi-seasons '("Vernal Equinox" "Summer Solstice" "Autumnal Equinox" "Winter Solstice") "List of season changes for the northern hemisphere." (list (string :tag "Vernal Equinox") (string :tag "Summer Solstice") (string :tag "Autumnal Equinox") (string :tag "Winter Solstice")) solar-s-hemi-seasons '("Autumnal Equinox" "Winter Solstice" "Vernal Equinox" "Summer Solstice") "List of season changes for the southern hemisphere." (list (string :tag "Autumnal Equinox") (string :tag "Winter Solstice") (string :tag "Vernal Equinox") (string :tag "Summer Solstice"))] 8) #@58 Sidereal time at Greenwich at midnight (universal time). (defvar solar-sidereal-time-greenwich-midnight nil (#$ . 4571)) #@135 Non-nil if northern spring or summer and nil otherwise. Needed for polar areas, in order to know whether the day lasts 0 or 24 hours. (defvar solar-northern-spring-or-summer-season nil (#$ . 4699)) #@71 Ensure the variable `calendar-latitude' is a signed decimal fraction. (defalias 'calendar-latitude #[nil "\247\203 \207\302H\303H\304\245\\\305H\306=\203 \202 [)\207" [calendar-latitude lat 0 1 60.0 2 north] 3 (#$ . 4903)]) (put 'calendar-latitude 'byte-optimizer 'byte-compile-inline-expand) #@72 Ensure the variable `calendar-longitude' is a signed decimal fraction. (defalias 'calendar-longitude #[nil "\247\203 \207\302H\303H\304\245\\\305H\306=\203 \202 [)\207" [calendar-longitude long 0 1 60.0 2 east] 3 (#$ . 5213)]) (put 'calendar-longitude 'byte-optimizer 'byte-compile-inline-expand) #@97 Return a number from the minibuffer, prompting with PROMPT. Returns nil if nothing was entered. (defalias 'solar-get-number #[(prompt) "\302\303\"\211\303\230?\205 \304 !)\207" [prompt x read-string "" string-to-number] 4 (#$ . 5527)]) #@77 Prompt for `calendar-longitude', `calendar-latitude', `calendar-time-zone'. (defalias 'solar-setup #[nil "\303 \210\204 \304\305! \204 \304\306!\n\206 \304\307!\211\207" [calendar-longitude calendar-latitude calendar-time-zone beep solar-get-number "Enter longitude (decimal fraction; + east, - west): " "Enter latitude (decimal fraction; + north, - south): " "Enter difference from Coordinated Universal Time (in minutes): "] 2 (#$ . 5772)]) #@26 Return sin of X degrees. (defalias 'solar-sin-degrees #[(x) "\301\302\303\304\"_!\207" [x sin 0.017453292519943295 mod 360.0] 5 (#$ . 6228)]) #@29 Return cosine of X degrees. (defalias 'solar-cosine-degrees #[(x) "\301\302\303\304\"_!\207" [x cos 0.017453292519943295 mod 360.0] 5 (#$ . 6377)]) #@30 Return tangent of X degrees. (defalias 'solar-tangent-degrees #[(x) "\301\302\303\304\"_!\207" [x tan 0.017453292519943295 mod 360.0] 5 (#$ . 6532)]) #@43 Determine the quadrant of the point X, Y. (defalias 'solar-xy-to-quadrant #[(x y) "\302V\203 \302V\203 \303\207\304\207 \302V\203 \305\207\306\207" [x y 0 1 4 2 3] 2 (#$ . 6689)]) #@42 Determine the quadrant of ANGLE degrees. (defalias 'solar-degrees-to-quadrant #[(angle) "\301\302\303\"\304\"T\207" [angle floor mod 360 90] 4 (#$ . 6880)]) #@35 Arctangent of X in quadrant QUAD. (defalias 'solar-arctan #[(x quad) "\303\304!_\n\305U\203 \306\\\202+ \n\307U\203 \306\\\202+ \n\310U\203* \311\\\202+ )\207" [x deg quad 57.29577951308232 atan 2 180 3 4 360] 3 (#$ . 7044)]) #@27 Arctangent of point X, Y. (defalias 'solar-atn2 #[(x y) "\302!\203 \303V\203 \304\207\305\207\306 \245\307 \"\"\207" [x y zerop 0 90 270 solar-arctan solar-xy-to-quadrant] 5 (#$ . 7284)]) #@17 Arccosine of X. (defalias 'solar-arccos #[(x) "\302\303\211_Z!\304 \")\207" [x y sqrt 1 solar-atn2] 4 (#$ . 7484)]) #@14 Arcsin of Y. (defalias 'solar-arcsin #[(y) "\302\303\211_Z!\304 \")\207" [y x sqrt 1 solar-atn2] 4 (#$ . 7609)]) #@27 Convert DEGREES to hours. (defalias 'solar-degrees-to-hours #[(degrees) "\301\245\207" [degrees 15.0] 2 (#$ . 7731)]) (put 'solar-degrees-to-hours 'byte-optimizer 'byte-compile-inline-expand) #@44 Convert HOUR to decimal fraction of a day. (defalias 'solar-hours-to-days #[(hour) "\301\245\207" [hour 24.0] 2 (#$ . 7930)]) (put 'solar-hours-to-days 'byte-optimizer 'byte-compile-inline-expand) #@101 Right ascension of the sun, in hours, given LONGITUDE and OBLIQUITY. Both arguments are in degrees. (defalias 'solar-right-ascension #[(longitude obliquity) "\303\304!\305 !_\306 !\"\211\307\245)\207" [obliquity longitude degrees solar-arctan solar-cosine-degrees solar-tangent-degrees solar-degrees-to-quadrant 15.0] 5 (#$ . 8135)]) #@99 Declination of the sun, in degrees, given LONGITUDE and OBLIQUITY. Both arguments are in degrees. (defalias 'solar-declination #[(longitude obliquity) "\302\303!\303 !_!\207" [obliquity longitude solar-arcsin solar-sin-degrees] 4 (#$ . 8477)]) #@346 Return solar longitude, ecliptic inclination, equation of time, nutation. Values are for TIME in Julian centuries of Ephemeris Time since January 1st, 2000, at 12 ET. Longitude and inclination are in degrees, equation of time in hours, and nutation in seconds of longitude. If SUNRISE-FLAG is non-nil, only calculate longitude and inclination. (defalias 'solar-ecliptic-coordinates #[(time sunrise-flag) "\306\307\310_\311\312\211##\313\314_\\\306\315\316_\311\317\211#\311\320\211\211$$\306\321\322_\311\323\211#\311\324\211\211$$\306\211\325\326_\311\327\211##\330!_\331\332_\\\330\333_!_\334\330\335_!_# \\1\336\337_\\23?\205\212 \306\340\3302!_\341\330 \333_!_\342\330\n\333_!_\343\3302\333_!_$43?\205\235 \306\344\345_\311\346\211##5\3061\347\350\3302!_#63?\205\275 \351\f\333\245!\351\f\333\245!_73?\205 \3067\330 \333_!_\3115\330!\352#\31157\330!\353 \333_!\354%\311\3557\211\330 \354_!$\311\3565\211\330\333_!$%\357_\360\24586\f84F.\f\207" [time l ml m i c + 280.46645 36000.76983 * 0.0003032 218.3165 481267.8813 357.5291 35999.0503 -0.0001559 -4.8e-07 23.43929111 -0.013004167 -1.6389e-07 5.036e-07 1.9146 -0.004817 -1.4e-05 solar-sin-degrees 0.019993 -0.000101 2 0.00029 3 125.04 -1934.136 -17.2 -1.32 -0.23 0.21 0.016708617 -4.2037e-05 -1.236e-07 -0.00569 -0.00478 solar-tangent-degrees -2 solar-cosine-degrees 4 -0.5 -1.25 12 3.1415926535 L omega sunrise-flag nut ecc app y time-eq] 12 (#$ . 8729)]) #@200 Ephemeris time minus Universal Time during Gregorian YEAR. Result is in days. For the years 1800-1987, the maximum error is 1.9 seconds. For the other years, the maximum error is about 30 seconds. (defalias 'solar-ephemeris-correction #[(year) "\306X\203 \307W\203 \310\311\312\313#\314\315\316$\207\317X\203D\306W\203D\320\321\322E\211\323 8)\324\325!\203>