*********************************************************** **** ** Chinese calendar class (Chinese calendar class (CCC)) ** ** author: people neweroica ** ** ** dedicated and tireless work for the freedom of the code ** ** ** - Simple is BEAUTY ** ** May 8, 2003 ** ******************************************************* ******************
1. About China's calendar and copyright statement
1. Copyright declaration
######################################################################################################################################################################################################################################################################################################## ##############################
Copyright declaration ________________________________________________________________________________________________________________________________________
Chinese Calendar Class (CCC)) Version: V0.1, JavaScript version
Copyright (C) 2002-2003 Neweroica (WY25@mail.bnu.edu.cn) Contact: email: wy25@mail.bnu.edu.cn
QQ: 32460746
This freedom code (JavaScript version) complies with the spirit of the GPL standard and the Open Source, in principle, for free for any programmers around the world, modify, rewritten into other programming languages and re-release, but I hope that you will be in progress The hard work of the original originator, please keep this short copyright information, thank you! _____________________________________________________________
######################################################################################################################################################################################################################################################################################################## ################################
2. About China Calendar (CCC-V0.1-JS)
Many years ago, when I was in secondary school, I started interested in astronomy and calendar, both admire the simple and accurate of Western calendar, and taste the tradition of Chinese traditional Chinese calendar, especially in there is no gas. With the charm of traditional Chinese culture and the double influence of Western modern science, I have begun to try to formulate Chinese lunar calendar, dry buds, soil, etc., to know that the ancients often use the mouth to replace the formula, such as the moon dry branch, the mouth of the time, This is not easy to remember, and it cannot reflect the reason. It seems that these early work actually enabled me to realize a long-year-old calendar in the e-age. At this time, I just started to learn to be a web page. After learning HTML, I am interested in scripting language JavaScript, so I will write the program according to my intent, and I will make myself every time. Anxious, but every success also makes me excited. In this way, I am in practice (this is quite important), I gradually proficient JavaScript programming, and even write a larger program. For October, I have written out Russian square game during the October Holiday, although I have discovered There is also a better script on the Internet, but I have a sense of accomplishment for anything.
I have already wanted to edit a thousand years of programs on the Internet. JavaScript just learned JavaScript was compiled, but the algorithm is troublesome, but the lunar information of each year needs to be determined, and the other hollow calculation formula It is also a bit wrong. Later, I was accidentally discovered online by Mr. Lin Yuxian, Taiwan (later in the mainland's Meisu Pine) Classic 200-year JavaScript, many new websites, many websites used Mr. Lin (but some actually did not Description copyright), I am very sighful. I feel that I have a big difference between myself and others. Finally, in April to May last year, I took a multi-year-old time for spending for more than a month. I used for nearly three thousand years. In addition to the lunar calendar and the yang calendar, there is Confucius day and era. , Dry, grace, holiday, holiday, Huangdao constellation, various festivals (including ninety, three volts, plum rain), human biological clock, countdown, and diary, algorithm and Mr. Lin are completely different, and function and accuracy It is also possible to do, such as Mr. Lin, such as the regular calendar. In 1985, it was on March 21, which is completely consistent with the results of this year, and Mr. Lin is March 20, why It is my algorithm to consider the difference between the age, and Mr. Lin is a simple algorithm with a flat gas.
At that time, I called the "Idealian", "I was taken from" Zhou Yi, "Zhou Yi," said "the number of people" said. " Shortly after completing, I published all source code and related comments in the Unknown BBS of Peking University. Many netizens tried to "know themselves", giving me a strong support and encouragement, and some issues and suggestions are proposed, mainly slower, individual lunar calendar dates and interfaces can be beautified. However, I haven't more time and energy, so I have been dragging.
Until recently (after a whole year later), this is the "SARS period" in Beijing, and the school is temporarily suspended. I have time to fix my long-year-old calendar, not only correct the original mistake, but also add some functions. Such as the transformation of the episode, the armor, twenty-eight-star, the world time zone, etc., adding a holiday. However, the most important thing is that I have produced the idea of building "China Calendar". In other words, I will have all the functions of the Chinese calendar on the Chinese calendar in a "Chinese Calendar Class", so that others are needed to use some of the Chinese calendar. When a function is a function (as for a certain day of the lunar day, or if there is a holiday, if you have a few months, if you have a few months, you don't have to write code, but directly from the CCC. Easy degree is like a light / disk from the disc carton. I finally took a few days, I finally found the CCC construction, and used it to rereading an online foreye, not only correcting the previous mistakes, but also added some functions, but the speed and interface have been changed. .
Finally, I should thank Mr. Zeng Liang and Erling Poulsen, Mr. Zeng for decades of hard work makes me formulate his holiday calculation method, and my eating process is simplified and applied in Erling Poulsen. In addition, the Boo netizens carefully pointed out the mistakes of the individual lunar calendar dates in 1901 and 2050, but also thank you.
Second, the use of China's calendar JavaScript version (CCC-V0.1-JS)
1. The source code files included
All source files are in the CCC0.1 directory, including ccc.js, math.js, solar.js, sterm.js, ganzhi.js, lunar.js, string.js, ftvl.js, era.js, and timezone. JS.
Note: When referenced, the CCC0.1 directory must be in the same directory with referenced files and cannot change the CCC directory name. For example, Calendar.htm under the C: / MyPages directory To reference CCC, then put the CCC directory under C: / MyPages and add: