Heavenly stems and earthly branches transformation

How to convert a day in heavenly stems and earthly branches has been handed down from generation to generation, with 60 days (60 days) as a cycle. The simplest thing is to look at the calendar, and there are also blind algorithms.

The method of rising from the sun has special rules:

The method of getting up in the morning is also called the method of pushing things and avoiding five children. Its Song formula is:

A gave birth to a, b, g and c for the first time.

Bing Xin originated in Wu, and Ding Rengeng lived in the word house.

This is the real way to make money.

This method starts with the daily work to determine when to do it, and counts the time clockwise until a certain time. For example, when JOE applied, his son was Jiazi, and when he was ugly, he was ugly. ..................................................................................................................................................

Sunrise timetable

Party A, Party B, Party G, Party C, Party C, Party D, Party D and Party D..

Zi Shi Jia Zi Bing Wu Zi Geng Zi Ren Zi

Ugly, ugly, ugly, ugly, ugly, ugly, ugly

India, Shi Bing, Yin Wu, silver, silver, silver and silver.

Shi Mao Ding Maoji Mao Xin Mao Gui Mao Yi

Chen Shi Chen Wu Chen Geng Ren Chen Chen Jia Chen Bing

When I was young, I was old, young, old, young, young.

Wu Wu was appointed at noon.

At the end of the day, Xin Wei has not surrendered to Wei B Wei.

Shen Renshen Shen Jia Bingshen Wushen Gengshen

You are right, you are right, you are right, you are right, you are right.

At that time, Jia Xu, Bing Xu, Xu Xu, Geng Xu and Ren Xu.

Shi hai yi hai ding hai Ji hai Xin hai GUI hai

Heavenly stems and earthly branches's method of calculating the trunk and branch by conversion of time: Note that the trunk and branch in A.D. here only refers to the trunk and branch in tropical years between beginning of spring (around February 4th) of that year and beginning of spring (around February 4th) of the following year. For example, the year of B in 20 15 (20 15 February 4th -20 165438 February 4th). 2 (B),3 (C),4 (D),5 (E),6 (F),7 (G),8 (Xin),9 (N), 10 (D),2 (Y)。 12 (ugly) annual stem calculation: ① annual stem formula: annual stem = annual single digits -3 (suitable for any year in AD, single digits are less than 3, borrowed from 10)② annual branch formula: annual branch = (year +7)÷ 12 remainder (divisible That is, the remainder is 12= ugly) ③ Simplification of annual branch: (two digits at the end of the year-1)-65438 Solution: 2065438+2005 stem = 5-3 = 2,2 2= B, so 2065438+2005 stem is B2065438. Solution: 189 trunk =9-3=6= self, 189 branch = (189+7)/12yu4 = si, 189 trunk is the last month trunk calculation: ① monthly trunk formula: directly take single digits ② simplified formula: (and take one digit) monthly trunk = annual trunk x2 times = annual trunk x2+ 1= silver moon dry ugly monthly trunk = annual trunk solution: 20 15. The last year's trunk is B, and B =2 Solution: monthly dryness = non x2+ sea = 9 * 2+10 =10 = 28, unit = 8,8 = symplectic, therefore, the monthly dryness in 20 12 years is symplectic (note: month Solution: sub-monthly trunk = 5x2+sub = 5 * 2+1= 21,unit = 1= A, so the sub-monthly trunk in the year of Wuzi is the calculation of one-day trunk: folks often adopt the calculation algorithm of New Year's Day trunk and branch, and then infer the one-day trunk and branch in the solar calendar. Time branch calculation: Tiangan (Chen Zi), A, B, D, E, G, N, N, R (leaf), ordinal number-1234567891kloc-0/1 Note: Chen Zi =-. Factor time and ugly time are the first two hours of every day, and the order should be put in front, so ugly time should be put in front: sub =- 1, ugly =0, yin = 1, gross =2… sub = 1 1. As a date dividing line, sub-hours are divided into two hours: early hour and late hour, early hour (0: 00-1: 00) and sub =- 1. Yezi (23: 00 -24: 00),Zi = 1 1。 Among the eight characters, midnight (23: 00 -24: 00) still belongs to today and still works today. ① time branch formula: time branch = hours ÷2- 1 (even hours), time branch = (hours+1)÷2- 1 (odd hours) ② time branch formula: time branch = daily work ×2+ time branch. ) Example: Date of finding the second hair 17: ... >>

Given heavenly stems and earthly branches, how to convert it into Gregorian calendar? Given the trunk and branches, find out the corresponding year order. Because heavenly stems and earthly branches circulates every 60 years, it is impossible to directly calculate the corresponding year value from the main branch. But we can calculate the corresponding year of 60 years according to the main branch, and then further calculate. Let X be the corresponding sequence of heavenly stems, and the sequence of A-D is1-10; Y is the corresponding order of earthly branches, and the sub-hai order is 1- 12. Then the calculation formula of the corresponding sequence Z is: z = 6x-5y, for example, 20 1 1 year is the year of Xinmao, which is 8 years, 4 years and 28 years after calculation, so the year of Xinmao is the 28th year in 60 years. The specific year can only be counted. The congruence equation a≡6x-5y+63 (mod 60) is actually a bit of a calculation. 3 1 year is the first xinmao year. (20 1 1-31)/60 = 33,201/is thirty-three years for Xinmao, and vice versa. a*60+3 1 = ba is sixty years, and B is.

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 strong superstitious color, which is really out of step 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 sun is covered with shade. 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

Converted into heavenly stems and earthly branches birth: August 23rd, 2008 18: 00 (Gregorian calendar).

Lunar calendar: 23 July 2008.

Monthly solar terms: beginning of autumn (12: August 7th, 7); Moderate qi: summer heat (2: 39 on August 23)

Date of birth: Wuzi year, Geng Shen was not in the second day of junior high school in February.

First of all, your constellation

The following is your constellation. You are a green sheep, born in the year of squirrel. Every day represents you, so you belong to wood.

Year (ancestor) month (parent) day (self) time (offspring)

Yang Tujin Yang Yin Mu Yin Mu

Squirrels, white monkeys, green sheep and green chickens.

Constellations are obtained from the three calendars of yin and yang. The top row is heavenly stems, which are arranged in turn by the five elements of "golden water, wood, fire and soil". The lower row is the earthly branches, arranged in the order of the zodiac. The zodiac can be transformed into five elements.

Second, your five elements and XiShen.

Calculate the scores of the five elements in the chart below.

The five elements belong to wood (the sun is in charge of itself), fire (physical and intellectual leakage), earth (money enjoyment), gold (work pressure) and water (protection of knowledge)

The score is 23.35438+0530.438+05.6.

Score of eight characters and five elements:

Wood 23.32; Water15.6; (similarity score: 38.92)

Fire 3; Soil15; Gold 30.78; (Heterogeneity score: 48.78)

Poor: -9.86 Comprehensive rise and fall score: -9.86 is too weak.

Eight characters like to use God: Eight characters are too weak, and eight characters like water. Water is the XiShen of this life.

Third, your good luck.

Delivery starts at the age of 4 after birth, 165438+ 10 month, 14, and is delivered every year after beginning of autumn 1 day (around August 9 in Gregorian calendar).

Around the delivery date, your fate will change greatly, and your fate will be extremely good or extremely bad. Be careful in everything!

Ten gods of the Universiade: it is better to rob officials, hurt the gods and eat money than to kill the positive seal and the partial seal seven times.

Main branches of the Universiade: Xinyou, Ren Xu, Guihai, Jiazi, Ugly, Bingyin, Ding Mao and Chen Wu.

Delivery year: 20132023203320432053206320732083

Delivery age:? 5? 15? 25? 35 45? 55? 65? 75

February 4th, 20 17 ~ February 4th, 2065438+08:

Once it rains, it will clear up and it will rain again soon.

Good fortune, lucky to have noble support.

The Ten Gods are food gods: their range of appearance is mostly related to development, literary writing, freelancing, professional technology, children, students, subordinates, and * *.

Ji Xiang: It's easier to make progress and success in your academic career, and it's easier to give full play to your talents. Love is also easier to produce and progress, and easy to have good luck. Women are more likely to get pregnant and give birth.

Evil image: cleverness is easy to be mistaken by cleverness, resulting in contradictions and lawsuits. The appearance is bright and dull to prevent physical and mental damage caused by overwork; Blind pursuit of love is detrimental to reputation and career. Men and women should guard against conflicts and marital changes.

February 4, 20 18 ~ 2065438+August 9, 2008:

Gold has been submerged in the sand for a long time and will be shared with the world one day.

High prestige, high income and tact. A man is a good wife.

August 9, 20 18 ~ 2065438+February 4, 2009:

Gold has been submerged in the sand for a long time and will be shared with the world one day.

High prestige, high income and tact. A man is a good wife.

Ten gods are positive wealth: their appearance is mostly related to property, money, father, man's wife or girlfriend.

Auspicious: Wealth is prosperous, and there are more opportunities for seeking wealth than usual. Father has an advantage, or it is easy to make a girlfriend, and the marriage is good.

Bad image: it is easy to cause property or money disputes and unexpected consumption. Too much money hurts the mother's wife and is prone to emotional breakdown.

February 4, 20 19 ~ February 4, 2020:

A day's troubles will bring you more happiness ... >>

The conversion method of the dry branch day needs a reference when calculating the dry branch day, such as the dry branch on New Year's Day of a certain year or the dry branch on other days. Because there are 365 days in a year and there are 60 cycles in the trunk and branch, the trunk and branch change on the first day of each year. The rest is easy to forget. Look at how many days the date to be calculated is from the reference date, and then convert it according to 60 cycles, just remember their order within 60 days.

If it is the day of Jiazi (it is more convenient for Jiazi to start calculating on the first day). So we need to know what day it is in Jiazi. For example, when is the 23rd day of Jiazi? What is the 38th day? If you want to do mental arithmetic, you need to know these things or do quick calculations.

We can find some patterns. Based on the sky dryness, 10 sky dryness has a period, from "A" to the deck. Then if you only look at the 3 on the 23rd, it must be the third "C" in the sky, and the 38th must be the eighth "Xin" in the sky.

Then calculate the earthly branches, and there are 12 earthly branches. Then divide the number of days by 12 and 23 by 12 to get the remainder 1 1, so it should be the eleventh "Yi" of earthly branches, and the 23rd day is Bingshen. The 38th day is divided by 12 and the remainder is 2, which corresponds to the second "ugly" in the earthly branch, so the 38th day should be "pungent and ugly".

According to this rule, you will soon know how to do it. Of course, it would be better if you can get familiar with 60 Jia Zi as a number (it seems difficult for ordinary people to do so).

So if the base date we choose is not Jiazi Day, we'd better find that day first.

How to convert the chronology of trunk and branch into AD and the conversion method of the chronology of trunk and branch-the conversion of AD 1 and the chronology of trunk and branch AD: First number heavenly stems and earthly branches as follows: methyl-ethyl-propyl-butyl-pentyl-heptyl-octyl-nonyl-decyl 45678910/2/. Then, divide the year by 12, and find the corresponding earthly branch with the remainder. In this way, the year of A.D. was converted into the year of dry support. For example: AD 1995, use the mantissa 5 of the current year to find out the corresponding heavenly stems as "b". Then, divide 1995 by 12 to get the remainder of 3. Use the remainder 3 to find out that the corresponding earthly branch is "Hai". So, AD 1995 is the second year of the lunar calendar. Another example is: AD 186 1 year, using the mantissa 1 to find the heavenly stems as "symplectic", using 186 1 to divide by 12, and then using the remainder. Then, 186 1 year is the year of the lunar calendar. If the mantissa of a year is 0 or the remainder of the year divided by 12 is 0, then 10 "Geng" in the heavenly stems and 12 "Shen" in the earthly branches are taken. For example: AD 120, mantissa 0 takes "Geng" in heavenly stems; Divided by 12, the remainder is 0, so take 12 "Shen" in the ground branch. Then, the year 120 is the year of Gengshen. In addition, if the Gregorian calendar year is a single number, you can use this number to look it up in heavenly stems and earthly branches. For example, in AD 6, there were corresponding "C" and "Yin" in heavenly stems and earthly branches, so that year was the third year. In 8 AD, it was Chen Wunian. 1 1, we take the mantissa 1 as the "Xin" in the heavenly stems and the mantissa1as the "Wei" in the earthly branches. Then, that year was Xin Weinian. 12 years is Ren Shennian. 2. Conversion between BC and the year of trunk and branch: heavenly stems and earthly branches are as follows: 1, 2, 3, 4, 5, 6, 6, 6, 4, 6, 6, 4, 6, 6, 6, 6, 5, 6, 6, 5, 6. Divide 155 by 12 to get the remainder of 1 1, which corresponds to the underground branch. That year was the year of Xu Bing. Method 2: 1. The confirmation of heavenly dryness is based on the figures at the end of the year. BC: 0 is Xin, 1 Geng, 2 is Ji, 3 is E, 4 is D, 5 is C, 6 is B, 7 is A, 8 is decyl and 9 is nonyl. After AD: 0 is Geng, 1 Xin, 2 is nonyl, 3 is decyl, 4 is A, 5 is B, 6 is C, 7 is D, 8 is E, and 9 is self. 2. Ground branch calculation can be divided into odd array and even array. (After A.D., odd-numbered spouse array, even-numbered spouse array. The situation in BC is just the opposite. ) Odd array: even array: 1 2 3 4 5 6 1 2 3 4 5 6 In the afternoon, when Ziyin applies for calculating the ground branch, divide the year by 6 and remove the last number (for example, divide 2009 by 6). Divide by 6 to get the remainder, and you can get the ground branch. However, due to the different final figures, the branches obtained are also different. It can be concluded that BC: the last digit is 0, 1, the remainder 0 is the fifth, the remainder 1 is the sixth, the remainder 2 is 1, the remainder 3 is the second, the remainder 4 is the third and the remainder 5 is the fourth. The last digit is 2,3, the remainder 0 is the fourth, the remainder 1 is the fifth, the remainder 2 is the sixth, the remainder 3 is 1, the remainder 4 is the second and the remainder 5 is the third. The last digit is 4,5, the remainder 0 is the third, the remainder 1 is the fourth, the remainder 2 is the fifth, the remainder 3 is the sixth, the remainder 4 is 1, and the remainder 5 is the second. The last digit is 6,7, the remainder 0 is the second, the remainder 1 is the third, the remainder 2 is the fourth, the remainder 3 is the fifth, the remainder 4 is the sixth, and the remainder 5 is 1. The last digit is 8,9, the remainder 0 is 1, the remainder 1 is the second, the remainder 2 is the third, the remainder 3 is the fourth, the remainder 4 is the fifth and the remainder 5 is the sixth. After AD: The last digit is 0, 1, the remaining 0 is the fifth, the remaining 1 is the fourth, the remaining 2 is the third, the remaining 3 is the second, the remaining 4 is 1, and the remaining 5 is the sixth. The last digit is 2,3, the remainder 0 is the sixth, the remainder 1 is the fifth, the remainder 2 is the fourth, the remainder 3 is the third, and the remainder 4...> & gt

The first algorithm of heavenly stems and earthly branches's conversion chronology: Different data algorithms are different, and some will give formulas, but they are essentially the same thing. Here is a simple and intuitive algorithm. First, give each aerial stem and aerial branch a number, and arrange them sequentially from 4, with aerial stem 10 followed by 1 and aerial branch 12 followed by 1. Tiangan: A 4, B 5, C 6, D 7, E 8, Ji 9, Geng 10, Xin 1, Ren 2, Gui 3: Zi 4, Ugly 5, Yin 6, Mao 7, Chen 8, Si 9, Wu 10, Wei 60. For example, in 2003, its mantissa was 3, and the corresponding heavenly stem was "decyl"; Divide 2003 by 12 to get 166, the remainder is 1 1, and the corresponding branch is not. So 2003 is the year of "Ghost Guard". Please note that this refers to the year after beginning of spring in 2003, and before beginning of spring, it should be a "noon" year. Mr. Wang pointed out in "Sacrifice to the Dead" that Qingming is the fourth solar term (beginning of spring, rain, fright, vernal equinox and Qingming) after beginning of spring, so Mr. Zhao said that one year is dead, not in the afternoon. Special: If the mantissa of a year is 0 and the remainder of the year is divided by 12 to be 0, then "Geng" with a mean of 10 in the sky and "Shen" with a mean of 12 in the earth will be taken. For example, in the year of 120, the mantissa 0 was taken as the "Geng" in the heavenly stems; Divided by 12, the remainder is 0, and the "Shen" in the ground branch is taken. Then, the year 120 is the year of Gengshen. If the year is within 12, you can directly use this number to look it up in heavenly stems and earthly branches. For example, in AD 6, there were corresponding "C" and "Yin" in heavenly stems and earthly branches, so that year was the third year. In 8 AD, it was Chen Wunian. 1 1, we take the mantissa 1 as the "Xin" in the heavenly stems and the mantissa1as the "Wei" in the earthly branches. Then, that year was Xin Weinian. 12 years is Ren Shennian. The second algorithm: 1. Sky-dried algorithm: the number of years minus 3 and then divided by 10 (excluding quotient) is the number of digits corresponding to the sky-dried; 2. Earthbranch algorithm: the number of years minus 3 divided by 12 (excluding quotient) is the number of digits corresponding to earthbranch; Tiangan: A, B, C, D, E, Ji, G, Xin, Ren and Gui Dizhi: Zi, Ugly, Yin, Mao, Chen, Si, Wu, Wei, Shen, You, Xu and Hai, for example 1. We take 2065438+. Heavenly stems algorithm: 20 10-3=2007, 2007/10 = more than 200, 7, 7 corresponds to the seventh place of heavenly stems is Geng, that is, heavenly stems are Geng; Ground branch algorithm: 20 10-3=2007, 2007/ 12= 167, the third place of the ground branch is yin, that is, the ground branch is yin; To sum up, 20 10 is the year of Geng Yin in heavenly stems and earthly branches. In order to convince you of this algorithm, I will give another example to illustrate it: Example 2. We take 1987 as an example; Heavenly dry algorithm: 1987-3= 1984,1984//kloc-0 =198; 4 corresponds to the fourth place of Tiangan, that is, Tiangan is D; Ground branch algorithm: 1987-3= 1984,1984/12 =165, where the fourth digit of the ground branch is the radix, that is, the ground branch is the radix; To sum up, 1987, the year of heavenly stems and earthly branches was taken as the year of Ding Mao. The number of heavenly stems and earthly branches is as follows: heavenly stems: A, B, C, D, E, Kyrgyzstan, G, Xin, Ren, Gui 7654321kloc-0/098 earthly branches: Zi, Ugly, Yin, Mao, Chen, Si, Wu and Ren. Hai 98765432 12110 uses the mantissa of BC to find the stem corresponding to the mantissa in the heavenly stems, and then divides BC by12 to find the branch corresponding to the remainder in the endless branches, thus obtaining the year of BC. For example, in BC 155, the mantissa 5 was used to take the "C" in the heavenly stems; Divide 155 by 12 to get the remainder of 1 1, which corresponds to the underground branch. That year was the year of Xu Bing. If the year is within 12 BC, you can directly find the corresponding number of heavenly stems and earthly branches. For example, 8 BC was a year of shame and ugliness. Note: The year of the trunk and branch of the lunar calendar does not completely coincide with the year of the Gregorian calendar. For example, this year is the fourth year of the lunar calendar (Spring Festival from February 20 13 to New Year's Eve from February 20 141October 30). In the lunar calendar, each earthly branch corresponds to 24 solar terms in a solar term (non-neutral) > >