| Server IP : 217.160.0.212 / Your IP : 216.73.216.203 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/emacs/28.2/lisp/calendar/ |
Upload File : |
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.
(byte-code "\300\301!\210\300\302!\210\303\304\305\306\307\310\311\301&\210\312\313\314\315\316DD\317\320\321\311\304&\210\322\313\323\324#\210\312\325\314\315\326DD\327\320\330\311\304&\210\312\331\314\315\332DD\333\320\334\311\304&\210\312\335\314\315\336DD\337\320\321\340\324\311\304& \210\312\341\314\315\342DD\343\320\330\311\304&\210\312\344\314\315\345DD\346\320\321\340\324\311\304& \210\312\347\314\315\350DD\351\320\321\340\324\311\304& \210\312\352\314\315\353DD\354\320\334\311\304&\210\312\355\314\315\356DD\357\320\334\311\304&\210\312\360\314\315\361DD\362\311\304\320\363&\210\312\364\314\315\365DD\366\311\304\320\367&\207" [require calendar lunar custom-declare-group calendar-chinese nil "Chinese calendar support." :prefix "calendar-chinese-" :group custom-declare-variable calendar-chinese-time-zone funcall function #[0 "\300\207" [(if (< year 1928) (+ 465 (/ 40.0 60.0)) 480)] 1 #1=""] "Minutes difference between local standard time for Chinese calendar and UTC.\nDefault is for Beijing. This is an expression in `year' since it changed at\n1928-01-01 00:00:00 from UT+7:45:40 to UT+8." :type sexp put risky-local-variable t calendar-chinese-location-name #[0 "\300\207" ["Beijing"] 1 #1#] "Name of location used for calculation of Chinese calendar." string calendar-chinese-daylight-time-offset #[0 "\300\207" [0] 1 #1#] "Minutes difference between daylight saving and standard time.\nDefault is for no daylight saving time." integer calendar-chinese-standard-time-zone-name #[0 "\300\207" [(if (< year 1928) "PMT" "CST")] 1 #1#] "Abbreviated name of standard time zone used for Chinese calendar.\nThis is an expression depending on `year' because it changed\nat 1928-01-01 00:00:00 from `PMT' to `CST'." :risky calendar-chinese-daylight-time-zone-name #[0 "\300\207" ["CDT"] 1 #1#] "Abbreviated name of daylight saving time zone used for Chinese calendar." calendar-chinese-daylight-saving-start #[0 "\300\207" [nil] 1 #1#] "Sexp giving the date on which daylight saving time starts.\nDefault is for no daylight saving time. See documentation of\n`calendar-daylight-savings-starts'." calendar-chinese-daylight-saving-end #[0 "\300\207" [nil] 1 #1#] "Sexp giving the date on which daylight saving time ends.\nDefault is for no daylight saving time. See documentation of\n`calendar-daylight-savings-ends'." calendar-chinese-daylight-saving-start-time #[0 "\300\207" [0] 1 #1#] "Number of minutes after midnight that daylight saving time starts.\nDefault is for no daylight saving time." calendar-chinese-daylight-saving-end-time #[0 "\300\207" [0] 1 #1#] "Number of minutes after midnight that daylight saving time ends.\nDefault is for no daylight saving time." calendar-chinese-celestial-stem #[0 "\300\207" [["Jia" "Yi" "Bing" "Ding" "Wu" "Ji" "Geng" "Xin" "Ren" "Gui"]] 1 #1#] "Prefixes used by `calendar-chinese-sexagesimal-name'." (vector (string :tag "Jia") (string :tag "Yi") (string :tag "Bing") (string :tag "Ding") (string :tag "Wu") (string :tag "Ji") (string :tag "Geng") (string :tag "Xin") (string :tag "Ren") (string :tag "Gui")) calendar-chinese-terrestrial-branch #[0 "\300\207" [["Zi" "Chou" "Yin" "Mao" "Chen" "Si" "Wu" "Wei" "Shen" "You" "Xu" "Hai"]] 1 #1#] "Suffixes used by `calendar-chinese-sexagesimal-name'." (vector (string :tag "Zi") (string :tag "Chou") (string :tag "Yin") (string :tag "Mao") (string :tag "Chen") (string :tag "Si") (string :tag "Wu") (string :tag "Wei") (string :tag "Shen") (string :tag "You") (string :tag "Xu") (string :tag "Hai"))] 10)
#@184 The N-th name of the Chinese sexagesimal cycle.
N congruent to 1 gives the first name, N congruent to 2 gives the second name,
..., N congruent to 60 gives the sixtieth name.
(fn N)
(defalias 'calendar-chinese-sexagesimal-name #[257 "\302\303S\304\246H S\305\246H#\207" [calendar-chinese-celestial-stem calendar-chinese-terrestrial-branch format "%s-%s" 10 12] 7 (#$ . 3610)])
#@154 Absolute date of first new Zodiac sign on or after absolute date D.
The Zodiac signs begin when the sun's longitude is a multiple of 30 degrees.
(fn D)
(defalias 'calendar-chinese-zodiac-sign-on-or-after #[257 "\306!\3078\262\310 !
\311\312\313\314!\315\"!!. \207" [year calendar-chinese-time-zone calendar-time-zone calendar-chinese-daylight-time-offset calendar-daylight-time-offset calendar-chinese-standard-time-zone-name calendar-gregorian-from-absolute 2 eval floor calendar-astro-to-absolute solar-date-next-longitude calendar-astro-from-absolute 30 calendar-standard-time-zone-name calendar-chinese-daylight-time-zone-name calendar-daylight-time-zone-name calendar-chinese-daylight-saving-start calendar-daylight-savings-starts calendar-chinese-daylight-saving-end calendar-daylight-savings-ends calendar-chinese-daylight-saving-start-time calendar-daylight-savings-starts-time calendar-chinese-daylight-saving-end-time calendar-daylight-savings-ends-time] 6 (#$ . 3998)])
#@70 Absolute date of first new moon on or after absolute date D.
(fn D)
(defalias 'calendar-chinese-new-moon-on-or-after #[257 "\306!\3078\262\310 !
\311\312\313\314!!!!. \207" [year calendar-chinese-time-zone calendar-time-zone calendar-chinese-daylight-time-offset calendar-daylight-time-offset calendar-chinese-standard-time-zone-name calendar-gregorian-from-absolute 2 eval floor calendar-astro-to-absolute lunar-new-moon-on-or-after calendar-astro-from-absolute calendar-standard-time-zone-name calendar-chinese-daylight-time-zone-name calendar-daylight-time-zone-name calendar-chinese-daylight-saving-start calendar-daylight-savings-starts calendar-chinese-daylight-saving-end calendar-daylight-savings-ends calendar-chinese-daylight-saving-start-time calendar-daylight-savings-starts-time calendar-chinese-daylight-saving-end-time calendar-daylight-savings-ends-time] 6 (#$ . 5016)])
#@77 List of starting dates of Chinese months from START to END.
(fn START END)
(defalias 'calendar-chinese-month-list #[514 "X\205 \300!\211X\205 \211\301T\"B\262\207" [calendar-chinese-new-moon-on-or-after calendar-chinese-month-list] 7 (#$ . 5940)])
#@243 Assign month numbers to the lunar months in LIST, starting with START.
Numbers are assigned sequentially, START, START+1, ..., 11, with
half numbers used for leap months. First and last months of list
are never leap months.
(fn LIST START)
(defalias 'calendar-chinese-number-months #[514 "\205G \211@D\300ZGZ\301U\203 \302AT\"\202F AA\203@ \3038\304A@!X\203@ \305\\A@D\302AAT\"B\202F \302AT\"B\207" [12 0 calendar-chinese-number-months 2 calendar-chinese-zodiac-sign-on-or-after 0.5] 7 (#$ . 6205)])
#@299 Compute the structure of the Chinese year for Gregorian year Y.
The result is a list of pairs (i d), where month i begins on absolute date d,
of the Chinese months from the Chinese month following the solstice in
Gregorian year Y-1 to the Chinese month of the solstice of Gregorian year Y.
(fn Y)
(defalias 'calendar-chinese-compute-year #[257 "\300\301\302E\211\3038\262\304\305U\203 \306\307!\266\203\202X\305V\203\220 S\262\310\211\211@\262\211A@\262\3038\262\311S_\\\303V\203{ \211\312\313_\\\314\245Z\262\211\305W\203\\ \315!S\262\211\313\246\305U\205r \211\316\246\305U?\206r \211\317\246\305U\262\203{ \211T\262\266\204\320_\313\245\316\245[\317\245%\266\203\202X\315T!\262\321\211\211@\262\211A@\262\3038\262\311S_\\\303V\203\355 \211\312\313_\\\314\245Z\262\211\305W\203\316 \315!S\262\211\313\246\305U\205\344 \211\316\246\305U?\206\344 \211\317\246\305U\262\203\355 \211T\262\266\204\320_\313\245\316\245[\317\245\322\211\211@\262\211A@\262\3038\262\311S_\\\303V\203R\211\312\313_\\\314\245Z\262\211\305W\2033\315!S\262\211\313\246\305U\205I\211\316\246\305U?\206I\211\317\246\305U\262\203R\211T\262\266\204&\266\203!\323\300\301\302SE\211\3038\262\304\305U\203u\306\307!\266\203\202\263\305V\203\353S\262\310\211\211@\262\211A@\262\3038\262\311S_\\\303V\203\326\211\312\313_\\\314\245Z\262\211\305W\203\267\315!S\262\211\313\246\305U\205\315\211\316\246\305U?\206\315\211\317\246\305U\262\203\326\211T\262\266\204\320_\313\245\316\245[\317\245%\266\203\202\263\315T!\262\321\211\211@\262\211A@\262\3038\262\311S_\\\303V\203H\211\312\313_\\\314\245Z\262\211\305W\203)\315!S\262\211\313\246\305U\205?\211\316\246\305U?\206?\211\317\246\305U\262\203H\211T\262\266\204\320_\313\245\316\245[\317\245\322\211\211@\262\211A@\262\3038\262\311S_\\\303V\203\255\211\312\313_\\\314\245Z\262\211\305W\203\216\315!S\262\211\313\246\305U\205\244\211\316\246\305U?\206\244\211\317\246\305U\262\203\255\211T\262\266\204&\266\203!T\"\300@!G\301U\203\315\301@D\324A\325\"B\207@V\204\334\211A@Y\203\357\326\327@D\301A@DD\324AA\325\"\"\207\326\301@DC\300A@!\3038Y\203\330A@D\324AA\325\"B\202\324A\325\"\"\207" [calendar-chinese-zodiac-sign-on-or-after 12 15 2 nil 0 user-error "There was no year zero" + 31 23 4 10 abs 100 400 365 - (12 31 -1) calendar-chinese-month-list calendar-chinese-number-months 1 append 11.5 12.5] 22 (#$ . 6730)])
#@139 Alist of Chinese year structures as determined by `chinese-year'.
The default can be nil, but some values are precomputed for efficiency.
(defvar calendar-chinese-year-cache '((2005 (12 731956) (1 731986) (2 732015) (3 732045) (4 732074) (5 732104) (6 732133) (7 732163) (8 732193) (9 732222) (10 732252) (11 732281)) (2006 (12 732311) (1 732340) (2 732370) (3 732399) (4 732429) (5 732458) (6 732488) (7 732517) (7.5 732547) (8 732576) (9 732606) (10 732636) (11 732665)) (2007 (12 732695) (1 732725) (2 732754) (3 732783) (4 732813) (5 732842) (6 732871) (7 732901) (8 732930) (9 732960) (10 732990) (11 733020)) (2008 (12 733049) (1 733079) (2 733109) (3 733138) (4 733167) (5 733197) (6 733226) (7 733255) (8 733285) (9 733314) (10 733344) (11 733374)) (2009 (12 733403) (1 733433) (2 733463) (3 733493) (4 733522) (5 733551) (5.5 733581) (6 733610) (7 733639) (8 733669) (9 733698) (10 733728) (11 733757)) (2010 (12 733787) (1 733817) (2 733847) (3 733876) (4 733906) (5 733935) (6 733965) (7 733994) (8 734023) (9 734053) (10 734082) (11 734112)) (2011 (12 734141) (1 734171) (2 734201) (3 734230) (4 734260) (5 734290) (6 734319) (7 734349) (8 734378) (9 734407) (10 734437) (11 734466)) (2012 (12 734496) (1 734525) (2 734555) (3 734584) (4 734614) (4.5 734644) (5 734673) (6 734703) (7 734732) (8 734762) (9 734791) (10 734821) (11 734850)) (2013 (12 734880) (1 734909) (2 734939) (3 734968) (4 734998) (5 735027) (6 735057) (7 735087) (8 735116) (9 735146) (10 735175) (11 735205)) (2014 (12 735234) (1 735264) (2 735293) (3 735323) (4 735352) (5 735382) (6 735411) (7 735441) (8 735470) (9 735500) (9.5 735530) (10 735559) (11 735589)) (2015 (12 735618) (1 735648) (2 735677) (3 735707) (4 735736) (5 735765) (6 735795) (7 735824) (8 735854) (9 735884) (10 735914) (11 735943)) (2016 (12 735973) (1 736002) (2 736032) (3 736061) (4 736091) (5 736120) (6 736149) (7 736179) (8 736208) (9 736238) (10 736268) (11 736297)) (2017 (12 736327) (1 736357) (2 736386) (3 736416) (4 736445) (5 736475) (6 736504) (6.5 736533) (7 736563) (8 736592) (9 736622) (10 736651) (11 736681)) (2018 (12 736711) (1 736741) (2 736770) (3 736800) (4 736829) (5 736859) (6 736888) (7 736917) (8 736947) (9 736976) (10 737006) (11 737035)) (2019 (12 737065) (1 737095) (2 737125) (3 737154) (4 737184) (5 737213) (6 737243) (7 737272) (8 737301) (9 737331) (10 737360) (11 737389)) (2020 (12 737419) (1 737449) (2 737478) (3 737508) (4 737538) (4.5 737568) (5 737597) (6 737627) (7 737656) (8 737685) (9 737715) (10 737744) (11 737774)) (2021 (12 737803) (1 737833) (2 737862) (3 737892) (4 737922) (5 737951) (6 737981) (7 738010) (8 738040) (9 738069) (10 738099) (11 738128)) (2022 (12 738158) (1 738187) (2 738217) (3 738246) (4 738276) (5 738305) (6 738335) (7 738365) (8 738394) (9 738424) (10 738453) (11 738483)) (2023 (12 738512) (1 738542) (2 738571) (2.5 738601) (3 738630) (4 738659) (5 738689) (6 738719) (7 738748) (8 738778) (9 738808) (10 738837) (11 738867)) (2024 (12 738896) (1 738926) (2 738955) (3 738985) (4 739014) (5 739043) (6 739073) (7 739102) (8 739132) (9 739162) (10 739191) (11 739221)) (2025 (12 739251) (1 739280) (2 739310) (3 739339) (4 739369) (5 739398) (6 739427) (6.5 739457) (7 739486) (8 739516) (9 739545) (10 739575) (11 739605))) (#$ . 9263))
#@360 The structure of the Chinese year for Gregorian year Y.
The result is a list of pairs (i d), where month i begins on absolute date d,
of the Chinese months from the Chinese month following the solstice in
Gregorian year Y-1 to the Chinese month of the solstice of Gregorian year Y.
The list is cached in `calendar-chinese-year-cache' for further use.
(fn Y)
(defalias 'calendar-chinese-year #[257 "\301\"A\211\204 \302!\262\303BC\"\207" [calendar-chinese-year-cache assoc calendar-chinese-compute-year append] 6 (#$ . 12546)])
#@140 Insert an initialization value for `calendar-chinese-year-cache' after point.
Computes values for 10 years either side of YEAR.
(fn YEAR)
(defalias 'calendar-chinese-year-cache-init #[257 "\211\301Z\262\302\211\212\303c\210\304\211\305W\2036 \306\307!Bp\"\210\211\310U\203( \311\202) \312c\210T\262\211T\262\202 \210`\262)\212`W\203T \313\314\315#\203T \316\317!\210\312c\210\202<