Traditional Culture Encyclopedia - The 24 Solar Terms - The code of the perpetual calendar. Who can explain how to calculate?
The code of the perpetual calendar. Who can explain how to calculate?
This algorithm is a rough algorithm. The first line is to calculate the year, month, day, hour, minute and second millisecond of the festival. Although it is counted to milliseconds, in fact, due to the difference of earth motion in the solar system, minutes will be inaccurate. This solar term starts from 1990 1 2: 05 on June 6th. I guess 1 June 6th is the vernal equinox.
The second line is to convert the calculated milliseconds into Beijing time.
Because the earth's orbit is elliptical in the array, the calculated values are all rough milliseconds. Used to calculate solar terms.
This algorithm is relatively rough, and sometimes there will be a solar term error of one day in a hundred years.
- Related articles
- Talking about the breath of spring in a circle of friends (selected 37 sentences)
- The Yellow Emperor found a suitable living environment and was in a good mood.
- Implementation Planning of School-based Curriculum Development of Small Farmers
- Beginning of spring folk songs
- What kind of engine does He Yue use?
- What are the folk customs of Mangzhong?
- How to adjust the valve clearance of diesel pump?
- How to eat and drink in summer?
- What do Hunan people like to eat?
- The custom of Dai people celebrating the Spring Festival