Fortune Telling Collection - Zodiac Analysis - How to convert the lunar calendar to the solar calendar?

How to convert the lunar calendar to the solar calendar?

How to calculate the lunar calendar and solar calendar?

Calculation formula of converting lunar calendar into solar calendar

1, solar calendar date calculation method of lunar calendar date:

As mentioned above, the date of the lunar calendar is based on the full moon, and each new moon is the first day. The full moon is 15 (the 16th month) and the dark month is 29 (the 30th month).

If you want to know what June 8th is, 1984? We can use the formula to calculate the date of the lunar calendar: for example, the number of years-1977 (or1901) = 4q+r.

Then: Lunar date =14q+10.6 (r+1)+date ordinal number of a year -29.5n (Note: in the formula, q, r and n are all natural numbers, r.

Therefore, if q = 4 and r = 1, then the date of May 7th of the lunar calendar is:14× 4+10.6 (1+1)+(31+28.

Then divide the quotient 6 of 204.2 by 29.5. 27.2,6 is the numerical value of n, and the remainder 27 is the 27th day of the lunar calendar.

The position of the 24 solar terms on the ecliptic is fixed, but each year is divided into a normal year and a leap year, which makes the number of days in the tropic of cancer different from the actual number, and each year can be one day worse on the calendar. In this way, after the lunar calendar passes through any whole year (the number of months equivalent to the lunar calendar in a year is 365.2422/29.588 =12.36827 months), the solar calendar can be found on the current calendar. For example, you can first find the date of the solar calendar corresponding to the lunar calendar 1995, thus finding a temporary foothold, that is, finding the key to the alternation of yin and yang. For example, the first day of the fourth lunar month can be used as an independent variable, and the corresponding Gregorian calendar can be found on the 1995 calendar as April 30th. Because the number of months has been calculated, the mantissa (decimal) of the number of months that have passed is converted into whole days, and April 30th is added to get the date of the whole year that has passed (1995- 1070), that is, the date corresponding to the starting lunar calendar date, that is, the date to be searched is April 30th plus 0.64957×. In this way, the date conversion result of the given example is obtained ... ".64957 month origin,

(1995-1070) ×12.36827 =11440.6957.month.

It is understood that Yi Zegong was born in Liang Long on1June 2, 9221. According to the calendar months and days on the first day of each month in 1999 provided in the following table, we can calculate the calendar months and days on June 2, 20021day in Lund, and the calendar months and days on the first day of each month in 2099.

(2099-922) × 12.36827 = 1455.9987.

The remainder is 0.45379 months × 29.530588 days = = 13.4O days.

As 1 May 1999 1 day (including February of that year) falls on June 19 of the Gregorian calendar, the calculation date of June 13 is June1day of the second year of Lund, that is, July 2 of that year and June 2 of that year.

3. Correction of calculation results

In fact, there are often great errors when the Gregorian calendar above is converted into the lunar calendar. For example, the first day of April in Xining is Gregorian calendar 1070 May 13, not May 19. The results are corrected by using the branch counting method in China calendar.

For example, Ma Yize was born on March 20th, 3 10, and the * * * calendar days are from January New Year's Day to March 20th, and the * * * calendar days are 79 days.

From New Year's Day in January to New Year's Day in 309, there are 1 13 leap years and 196 normal years. The Gregorian calendar is July 16 in Gregorian calendar 622. It is known that the number of branches on that day is 50, and the number of branches is reduced by 1 (counting from Jiazi), and the remaining 49 should be added to the following formula.

(309 × 354+ 1 13+79+49)÷60= 1827. 1 16667 ......

How to convert the lunar calendar into the solar calendar?

The first day of each month is called the new moon, and the last day is called darkness. The fifteenth, sixteenth or seventeenth day of the lunar calendar is called Wangwang, and the day after Wangwang is called Wangwang, so the New Year's Eve of the lunar calendar is not the same day every year. The basis of the lunar calendar is the year of the tropic of Capricorn and the first month. The tropic year is the time required for the sun to pass through vernal equinox twice in a row, that is, 365.2422 days (365 days, 5 hours, 48 minutes and 46 seconds). "The first month of the lunar calendar" is the time between two consecutive new moons (new moons) or two full moons (full moons), that is, 29.5306 days (June 29th 12 hours, 44 minutes and 3 seconds). Because 12 "Wang Shuoyue" is only 354.3672 days, which is more than 10 days different from 365.2422 days in the tropic year, this difference adds up to a leap month. As early as the Spring and Autumn Period in 5600 BC, the calendar of China adopted the arrangement of seven leap months in nineteen years. However, the calculation method of China lunar calendar is different from that of * * * and South Korea, with a general difference of one or two days. The date of the lunar calendar is based on the full moon, and each new moon is the first day. The full moon is 15th (16th) and 29th (30th). However, at present, the date of the solar calendar is usually used to express the time. If you want to convert the date of the solar calendar into the date of the lunar calendar, you can use the following two methods: one is to search the newly edited perpetual calendar, for example, what is the date of the lunar calendar on June 8, 1984? Open the perpetual calendar, 10 June is the eleventh lunar month, so it is inferred that June 8 is the ninth day of the ninth lunar month. Secondly, we can use the formula to calculate the lunar calendar date: for example: AD year-1977 (or 190 1) = 4q+r, then: lunar calendar date =14q+10.6 (r+)

How are the lunar calendar and Gregorian calendar converted? (how to calculate? )

Do you calculate with your mouth or pen?

I'm telling you, this is unreliable, it can't be calculated at all, and the transformation involved is not a simple formula. On the contrary, its transformation is quite complicated.

If you are interested in writing programs, I can provide a library of conversion functions. You can realize the conversion between the lunar calendar and the Gregorian calendar by calling a function.

At present, I have realized the transformation perfectly, and I can provide it if necessary.

Do you know how to calculate the lunar calendar with the solar calendar?

1, there is no calculation method, and it can only be arranged by day. Because the lunar calendar is not as fixed as the solar calendar, the solar calendar is 1, 3, 5, 7, 8, 10, 12 and so on. It often has a wet month, and this wet month is not fixed, so there is no calculation method

2. The moon in the Yellow Emperor's Canon is the three seas of the lunar calendar.

3. The current solar calendar is the Gregorian calendar, which is also translated into the national calendar, the frontal calendar, the solar calendar and the Gregorian calendar, and is called the AD. Julian calendar was reformed by Italian doctor and philosopher aloysius Lilius and promulgated by Pope Gregory XIII in 1582.

How to convert China's solar calendar, lunar calendar and solar calendar in dates?

Baidu is too complicated to study by itself.

What are the rules of conversion between lunar calendar and solar calendar?

No. The solar calendar takes the time for the earth to orbit the sun once (that is, 365 days, 5 hours, 48 minutes and 46 seconds, that is, 365.2422 days) as a year. In order to facilitate the calendar, it is set to 365 days (called an average year), leaving 0.2 days and 0.2422 days, which is 0.9688 days every four years, nearly one day. So every four years, one day is added to the year divisible by 4, and this year is 366 days (called leap year, that is, February 29 days), which is 3. 12 days less every 400 years, that is, three leap years less. So every hundred years is a leap year that can be divisible by both 4 and 400. That is what we usually say: leap in four years, not in a hundred years, and then jump in four hundred years.

In the lunar calendar, the time for the moon to orbit the earth once (that is, 29 days on average, 12 hours and 44 minutes) is one month, and 12 months is one year, that is, 354 days. There is a leap month year every three years, and the leap month year is 383 days or 384 days. /kloc-7 leap months in 0/9 years. Generally, the solar calendar 19 and the lunar calendar (19 years) can meet together or only one day apart.

What is the relationship between the lunar calendar and the solar calendar, the solar calendar and the lunar calendar, and how is the time calculated?

To put it simply: the solar calendar is calculated according to the sun. The orbit of the earth around the sun is 365 days and 6 hours, and the lunar calendar is the moon. (For example, every month15th full moon) The orbit around the sun is 355 days, and the lunar calendar is generally about one month slower than the solar calendar. Because the lunar calendar is about ten days less than the solar calendar every year, the lunar calendar goes fast, so a year is ten days faster, and ten years is one hundred days. Therefore, the lunar calendar has a leap month every few years, so every 60 years, the sun, the moon and the earth will return to their original starting points, and every 60 years will be called a "Jiazi", so every 60 years, the lunar calendar and the solar calendar will match again. In fact, a perpetual calendar only needs 60 years.

How to calculate the new lunar calendar?

The new calendar you mentioned is Gregorian calendar, also called Gregorian calendar. Based on the earth's time around the sun for one year, ***365 days and 5 hours, nearly 6 hours, with an average of only 365 days a year. The extra five hours are nearly six hours, and an average of one day is added to February every four years, so sometimes there are 29 days in February in the Gregorian calendar.

And the lunar calendar you said is the lunar calendar, also called the summer calendar. It takes a month, 29 and a half days, for the moon to be full and short at a time. A year is about 355 days, 30 days in the big month and 29 days in the small month. Because the difference between the number of days in the Lunar Year and the Earth Year (Gregorian calendar) is about 1 1 day, there should be a leap month every three years and seven leap months every 19 years, so that the average number of days in each year is close to the Earth Year (Gregorian calendar) to adjust the four seasons. The specific leap month depends on the elasticity of solar terms. For example, this year is leap May.

It is precisely because the calculation methods of solar calendar and lunar calendar are different, the number of days in each year is different, and the starting time of the first day of each year is also different, so the month and date of solar calendar and lunar calendar are out of sync, with a difference of about one month.

Because the Chinese calendar has always been used in the history of our country, most places in our country determine people's birthdays according to the lunar calendar when they were born, which is also a national habit.

However, due to the accurate and convenient timing of the Gregorian calendar, most countries in the world adopted the Gregorian calendar. China officially adopted the Gregorian calendar as early as 19 12 after the Revolution of 1911. Therefore, in formal occasions, the date of birth is based on the Gregorian calendar, such as identity cards, file records, resumes and so on.

You can check the perpetual calendar, and it will be easier to understand after you know the above situation. I'll tell you a very simple way to look at the perpetual calendar. Generally, the dates in the solar calendar are marked with * * * numbers, and the dates in the lunar calendar are marked with chinese numerals under the * * * numbers.

As you said, 199 1 was born on April 7th:

1, if this is the date of the Gregorian calendar, then the corresponding * * * number on the calendar is the China number on February 23rd under April 7th of the lunar calendar, which is your birthday.

2. If this is the date of the lunar calendar, then the * * * number corresponding to the China number on the calendar on April 7th is your birthday on May 20th in the solar calendar.