Fortune Telling Collection - Comprehensive fortune-telling - Conversion between Gregorian calendar and lunar calendar
Conversion between Gregorian calendar and lunar calendar
It is impossible to use a simple formula instead of using a lot of data like a perpetual calendar (although it can be simplified) to achieve the purpose of conversion between public and lunar calendar. All the software that we can see to convert Gregorian calendar into lunar calendar contains calendar data of different years.
Among these data, the most important is the number of days in each month of the lunar calendar. Because the lunar calendar is a lunar calendar, the part of the lunar calendar (according to the phase of the moon) determines a certain day in a month, and the part of the solar calendar (according to the height of the sun) is a solar term. Solar terms basically correspond directly to the Gregorian calendar, which is easy to calculate; However, the relationship between the moon phase period and the earth's revolution is relatively complicated, and generally requires astronomical observation data to give the time, so there is no simple formula for whether a lunar month is a big moon or a small moon.
As for the leap between the Gregorian calendar and the lunar calendar, there is a certain calculation method, which is not difficult.
If it is only astronomical data, it can still be counted-because the astronomical period is very stable, we only need to calculate it strictly according to the astronomical period. But there is another troublesome point, that is, the solar calendar and the lunar calendar are not strictly in accordance with the actual astronomical cycle, and there are many human factors. The most famous is that the Roman emperor revised the length of February and August for many times. Due to inaccurate calculation, the 10th was artificially deleted from julian calendar. In China, the calendar published by * * * is inconsistent with the astronomical phenomena because the ancient astronomical observations are inaccurate (we can't demand the accuracy of ancient observations). Therefore, these two calendars are related to a period of society, so there is no certain law to follow.
The comparison table for converting the lunar calendar into the Gregorian calendar is Gregorian calendar1Sunday, April 29th, 945.
How to convert between the solar calendar and the lunar calendar is internationally accepted. According to the Gregorian calendar, it takes one year for the earth to revolve around the sun, ***3 65 days, 5 hours, 48 minutes and 46 seconds. The average year is only an integer of 365 days, not a mantissa; A year is divided into 12 months, big month 3 1 day, small month 30 days, and February only has 28 days. The mantissa of four years accumulates to *** 1 day, and is added to February of the fourth year, which is called leap year. So February in leap year has 2 9 days. The lunar calendar orders a full moon for one month, ***29 and a half days. For the convenience of calculation, the big month is 30 days and the small month is 29 days. In 12 months of a year, large and small months are generally arranged alternately. The lunar calendar has only about 354 days a year, and there is no difference between a normal year and a leap year. The lunar calendar does not consider the movement of the earth around the sun, so the changes of the four seasons in the lunar calendar have no fixed time and cannot reflect the seasons, which is a great shortcoming. In order to overcome this shortcoming, people later decided on a calendar called Yin-Yang calendar. The summer calendar still in use in China (some people call it lunar calendar or lunar calendar) is this kind of lunar calendar. Like the lunar calendar, it is also based on the bright and full time of the moon to customize a month, with a big month of 3 0 days and a small month of 29 days. However, it also adopts the method of adding leap months to make the average number of days in a year close to the number of days in the solar calendar to adjust the four seasons. Every two or three years, there will be an extra leap month in the summer calendar. The lunar calendar, also known as the lunar calendar, takes the moon's orbit around the earth as one month and the earth's orbit around the sun as one year, which is actually equal to the lunar calendar. This calendar was adopted in China before the first year of the Republic of China, so it is called the old calendar. Generally speaking, the lunar calendar is suitable for farmers and is named "Lunar Calendar".
Conversion from Gregorian calendar to Gregorian calendar, Gregorian calendar and lunar calendar
(128× 365+3 1) day ÷ 128 = 365.438+0875 day/year.
It can be seen that the leap accuracy of * * * is much higher than that of modern Gregorian calendar.
2. Correction of one-day error in conversion
Calendar series takes 1387 January as an example, and calculates the year, month and day according to the Gregorian calendar.
Solution1:1387× 0.970224+621.5774 =1967.088.
0.278088× 365.2422 days = 10 1.569 days. The cumulative number of days in the Gregorian calendar is 10 1.57 days, which can be regarded as April 1 1 or April 12. What day is today? When two calendars have the same week ordinal number in April 1 1 or 12 of Gregorian calendar, it will be revised.
According to the calculation formula of ordinal number in the first week of Muharram:
[(138-1) ×131+164] ÷ 30 = 6057, with the remaining 20.
6057 ÷ 7 = 865, leaving 2.
So 1387' s New Year's Day is Tuesday. (Form)
According to the Gregorian calendar from1New Year's Day (Saturday, 583) to1April, 9671day, * * * calendar:
1967- 1583 = 384. In these 384 years, the Gregorian calendar has a leap of four years, but there is no leap of one hundred years. The rule of adding a leap day in 400 years * * * has 93 leap days, from1the day after New Year's Day in 967 to April 165438.
(384× 365+93+100+6) ÷ 7 =140359+7 = 2001,and the remaining 2 is Tuesday, so the New Year's Day of Ramadan 1387 falls on the Gregorian calendar/kloc-.
Because the Gregorian calendar uses a lot of data to calculate the number of Sundays, there are inevitably some omissions in the calculation. Now we introduce the calendar date and week calculation table for your reference.
Use this table to find the day of April 1967+ 1 1. The steps are as follows:
First, find the position of the word 19 in the first two digits of this year table;
Then find the position of the word 67 in the last two digits of the year table, and move to the right in parallel from the word 19, and the word 67 moves vertically downward, and the two words intersect at the letter G in the English capital column;
Then check April from the column of the monthly table, move from the position of April to the left in parallel, and check the position of G in the column of April;
Find the position of 1 1 from the date column, and move from this position to the right in parallel, so that the intersection of April and G column is called Tuesday, and the result is the same as that calculated in Hijri. So we know that New Year's Day 1387 is indeed 1967 April1,not 12.
In conversion, Gregorian calendar days often exceed 365,438+0 days, or even 200-300 days. When this number needs to be converted into the month and day of the year, you can use the following two tables.
Table 3 Gregorian calendar months and their cumulative days
Convert Gregorian calendar into hijri calendar
The formula of converting Gregorian calendar into Gregorian calendar can be obtained by shifting and sorting.
(Gregorian calendar 1 year 621.5691) ÷ 0.9702 = Muhalam (julian calendar) .............................. (5)
(Gregorian calendar 1 year 62 1.5774) ÷ 0.970224 = Muharram (Gregorian calendar) ......................... (6)
Whether hijri is converted to Gregorian calendar or not, there is usually a difference of one day. When the number of weeks is modified, the hijri calendar is converted into Gregorian calendar, and the number of weeks in hijri calendar shall prevail; On the contrary, the number of weeks in the Gregorian calendar shall prevail.
Four national calendars or Gregorian calendars were converted into the China lunar calendar.
1. Conversion from hijri to lunar calendar
Although the number of months in China lunar calendar is not a relatively stable value, which brings more difficulties to the conversion of solar calendar and Gregorian calendar into lunar calendar, it can still be converted. The lunar calendar in China is a combination of yin and yang, which belongs to the lunar calendar in terms of months. However, every month in Muharram, the new moon is 1 the beginning of the month, and its date is about 1-2 or even 3 days after the new moon (the first day of the lunar calendar). So as long as the relationship between them is clear, the hijri calendar can be converted into the China lunar calendar. Mr. Ma said to him, "> >;
How to Convert Gregorian Years into Lunar heavenly stems and earthly branches In ancient China, heavenly stems and earthly branches was used to record years, but it was rarely used in modern society. First, today's society is inseparable from internationalization, and it is unrealistic to follow the old rules; Secondly, heavenly stems and earthly branches is mostly used for folk fortune-telling and word-testing, with a strong superstitious color, which is really incompatible with modern science and technology society. But an excellent nation will not abandon its own history and culture. In historical events, poems, calligraphy and painting, there are a lot of chronicles of heavenly stems and earthly branches, so we need to know and be familiar with him. Let's take a look at it a little: 1. The origin of heavenly stems and earthly branches is called "trunk" for short in heavenly stems and earthly branches, and heavenly stems and earthly branches is equivalent to trunk and leaves. They are an interdependent and coordinated whole. In ancient China, heaven was the "master" and the earth was the "slave". The interconnection between "heaven" and "dryness" is called "heavenly dryness"; The relationship between "earth" and "branch" is called "earth branch", which together is "heavenly stems and earthly branches". There are ten words for heavenly stems, which are always called "ten heavenly stems". There are twelve characters in the earthly branches, which are collectively called "Twelve Earthly Branches". In the original meaning of heavenly stems and earthly branches, there is an interesting saying: 1, heavenly stems (A) sprout like grass forest, and the yang is covered by yin. Others think that the armor of armor also highlights everything by breaking through its armor. (b) The vegetation is primary, with soft, elastic and slender branches and leaves. The second one is rolling. (C) C, C, like the bright sun, scorching fire, everything belongs to Ming Che. (d) vigorous, vegetation grows vigorously, just like a person's maturity. (e) Mao Ye symbolizes the lush vegetation on the earth. From (since), discipline is also, everything turns back, tangible and disciplined. (g) More importantly, the autumn harvest should wait until spring. (Xin) Jin Weixin, when things are done, they will taste. Others believe that the new is also new, and they are in awe of all changes and show new achievements. Pregnancy, when everything is pregnant, the sun is an elf lurking underground. (1) Yes, everything is hidden, gestated, underground and budding. 2, the ground branches (seeds) are also awkward, flowers and trees have children, and the water in the soil is sucked out, which is the beginning of a yang Meng. (Ugly) Cattle fields, where vegetation germinates, bends and leaves the ground. Swallow leaves, gold leaves, flowers and trees that bend in cold soil protrude from the ground to meet the spring day. (Ye Mao), Rizhao East, everything is thriving. (Chen) The earthquake also extended that everything was born from the earthquake, and the sun was over half. (3) Everything begins to grow, yin disappears, and pure yang has no yin. (noon) Hey, everything is full and full, the yang is full, and the yin is budding. Delicious (not delicious), ripe fruit is delicious. (Shen) Both the body and the object have grown up. You are still alive when you are old, and everything is still shrinking and converging. Extinction, vegetation withers, anger goes out. (sea) illegal, illegal killing, has reached the extreme. Heavenly stems and earthly branches is said to have been invented in ancient times four or five thousand years ago. For example, Liu Shu in the Tang Dynasty quoted an ancient book and said, "(The Yellow Emperor) made great efforts to govern …………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………… At first, our ancestors only used the sky to record the days, because the days of a month were carried by the days; Remember the months with earthly branches, because ten months in a year exactly match ten earthly branches. However, not long after, people think that there will still be three days in a month when only the sky is dry to record the days. Therefore, a heavenly stem and a earthly branch are used to record dates in turn, such as Shangshu. Gu Ming says, "Only April is full of life. Kings don't make choices. Jia Zi, Wang Nai Tao Zanshui, was crowned with clothes. According to the records, this means that in early April, Wang felt very uncomfortable. On Jiazi's day, Wang Cai washed his face, the servant dressed the king, and Wang Yi sat on the jade table. Later, the method of recording the day was gradually introduced to record the year, month and time. Sixty flowers Jia Zi China lunar calendar uses heavenly stems and earthly branches as the method to calculate the year, month, day and time, that is, each heavenly stems and earthly branches is paired in a certain order, without repetition, as the code of the year, month, day and time. Put a word in the front "heavenly stems" and a word in the back "earthly branches", thus forming a pair of stems and branches. If "Tiangan" starts with "A" and "Dizhi" starts with "Zi", we can get: 1. Jiazi 2. Picnic 3. Bing Yin 4. Ding Mao 5. Chen Wu 6. Jiu Si 7. Wu Geng 8. Xinwei 9. Ren Shen 10. & gt
How to convert lunar calendar into national calendar and Gregorian calendar
Derivation of conversion formula of 1.
Gregorian calendar is 365.242 199074075 days per year (simplified as 365.2422 days), while Hijri calendar is 354.367074375 days per year (simplified as 354.36707 days), so Hijri calendar is only equivalent to 354.36707/365.2422 = 0.9723.2008080806 New Year's Day in the first year of Muharram was set on July 622 16. Due to the calculation error of the calendar at that time, according to the modern Gregorian calendar, the current July 16 should be changed to July 19, and the period from New Year's Day to July 19 of that year has reached 200 days. Phase 200/365.2422 = Because it didn't reach 0.970224 calendar year until the second year of Hijrayan, the formula for converting from Hijrayan to Gregorian is:
(Muharram 1 year 1 1)×0.924+622.76. 56637.86666666667
= Gregorian calendar date ............................................. (1)
Or hijri calendar year × 0.970224+62 1.5774.
= find the calendar year, month, year, month, year, month, year, month, year, month, year, month, year, month, year, year, year, month, year, year, year, month, year, year, month, year, year, year, year, year, year, year, year, year.
Among them, 62 1.5774 comes from 622.5476-0.9274.
If a historical fact is not found on the first day of New Year's Day, the total number of days that have passed this year can be converted into Gregorian years and added to the total number of Gregorian years.
However, the total number of days in the above-mentioned Gregorian calendar year is actually the measured number in the tropic year, because the number of days in the current Gregorian calendar year is actually 365.2425 days, which can only be basically consistent with the number of days in the tropic year, and there will be a difference of one day after more than 4,000 years.
In fact, the Gregorian calendar in the ten years of Wanli of Ming Dynasty, September 18, 990, 16,1June 4, 582 (including 4 days) is called julian calendar, and julian calendar has 365.25 days every year, which is far more different from the Gregorian calendar, that is, the modern Gregorian calendar is about/kloc. Therefore, we still can't use two formulas (1) and (2) for the conversion between the official calendar and the official calendar in julian calendar period, but we need to modify the above two formulas slightly according to the actual number of days in julian calendar. The results are as follows:
(IJL) × 0.9702+622.5393
= Represents Gregorian year, month, year, month, year, month, year, month, year and year (3)
Calendar year × 0.9702+62 1.569 1.
= Represents the Gregorian year, month, year, month, year, month, year, month, year, month, year, month, year, month, year (4)
Among them, 0.9702 is the result of 354.36707/365.25, 0.5393 is the result of the total days from New Year's Day to July 16 divided by 365.25, and 622.5393-0.9702 = 621.554366.
Now, the following table lists the calendar year, month and day calculated by two formulas every 100 year from the 52nd Muharram month:
Convert the national calendar to Gregorian calendar
From the calculation results of the table, we can see that the same formula cannot be used in different calendars, otherwise the error will be great. 10 years ago, it was found that the date of vernal equinox in julian calendar was quite different from the measured results, and it was ten days away from the Wanli decade. Therefore, Gregory XIII decided to revise julian calendar. There are two points in the reform. 1. The day after Gregorian calendar 1582 10.04 should be changed from 10.05 to 10.00. Secondly, julian calendar has a leap year every four years and a hundred leap years in 400 years. The Gregorian calendar still maintains the Confucian tradition of a leap year of four years, but only 97 leap years are arranged every 400 years, and there is no leap year every 100 years, and a leap year will be added in 400 years [6]. The chronological facts of julian calendar and Gregorian calendar are as follows:
Confucian calendar (365× 300+366× 00) ÷ 400 years = 365.25 days/year.
Gregorian calendar (365× 303+366× 97) ÷ 400 years = 365.2425 days/year and "Ming history? The * * * palace calendar (solar calendar) included in the calendar is 31 leap in 128 ... >>
Find the conversion formula between lunar calendar and solar calendar! ! ! In addition, you don't have to use it in excel to convert it. Word has a calendar template that can display both the solar calendar and the lunar calendar. EXCEL itself does not have this function, but it can be called through VBA, but it is also very troublesome. Actually, birthdays
How to convert China's solar calendar, lunar calendar and solar calendar in dates? Baidu is too complicated to study by itself.
- Related articles
- The name of a boy born in the Year of the Tiger is a word suitable for tiger men.
- Funny Chaoshan sketch fortune-telling _ Funny Chaoshan sketch fortune-telling video
- Buck's fortune-telling method
- Is it true that the fortune teller was detained _ Is it true that the fortune teller was detained for 3 million?
- My husband told me about my property.
- Dourgen: When did the Qing Dynasty perish? A word from the Taoist priest made him tremble all over. What is this sentence?
- Birth horoscope fortune telling, my name is Yang, right?
- The horoscope of Li Juming is at 202 1, and the zodiac is at 202 1.
- Fortune-telling Application _ Free Fortune-telling Application
- August 2023 15 male horoscope.