Traditional Culture Encyclopedia - Lucky day inquiry - How to calculate the trunk and branch calendar?
How to calculate the trunk and branch calendar?
Ri heavenly stems and earthly branches
The formula for calculating the branch date from the known date is:
g = 4C+[C/4]+[5y]+[y/4]+[3 *(m+ 1)/5]+d-3
z = 8C+[C/4]+[5y]+[y/4]+[3 *(m+ 1)/5]+d+7+I
Where c is the number of centuries minus 1. Odd months i=0, even months i=6, the first two digits of the year, Y is the last two digits of the year, M is the month, and D is the number of days. [] represents an integer.
65438+ 10 and February are calculated according to the previous year's 65438+March and 65438+April, so C and Y should also be calculated according to the previous year's year.
The remainder of g divided by 10 is heavenly stems, and the remainder of Z ingot is ground support plus 12.
If g is obtained first, then
Z=g+4C+ 10+i (odd months i=0, even months i=6)
For example:
July 2009 16
G = 80+5+45+2+4+16-3 =149, the remainder is 9, and the heavenly stems are "nonyl".
Z =149+80+/kloc-0+0 = 239, the remainder is 1 1, and the ground branch is Xu.
Question 2: How to convert the trunk-branch calendar ▲ Approximate conversion between trunk-branch calendar and Gregorian calendar.
Calculate the Gregorian calendar year of the stem and branch from the known Gregorian calendar year: the number of years is reduced by 3, the remainder is divided by 10 for the heavenly stem, and the remainder is divided by 12 for the earthly branch. (58 years BC-"the number of years divided by the remainder of 60")
It can also be dry: year10, regardless of the quotient obtained, depending on the remainder. If the remainder -3 is positive, it will count down in the order of heavenly stems; if the remainder -3 is negative, it will be+10, and the obtained number will be the heavenly stems. If the remainder is 3, it will be the last digit in the sky.
Ground branch: year ÷ 12, regardless of the quotient, see the remainder. If the remainder -3 is positive, count down in the order of ground branches, and the number obtained is the number of ground branches. If the remainder -3 is negative, it is+12, and the obtained number is the ordinal number of the earthly branch. If the remainder is 3, it is the last digit of the earthly branch, which is Hai.
Combining the number of heavenly stems with the number of earthly branches is the year of heavenly stems and earthly branches.
For example, the calendar year of 200 1 is a new year, and the algorithm is:
2001÷10 = 200 ...1,1-3 =-2, -2+ 10 = 8, and count to 8, a, b, c and d in chronological order.
2001÷12 =166 ... 9, 9-3 = 6, and count to 6 in the order of earthly branch, child, ugly, yin, moth, Chen and Si. Sixth, third.
According to the above calculation results, combined with heavenly stems and earthly branches, it can be seen that 200 1 is a new year.
▲ Conversion between branch chronology and Gregorian calendar
If we use the serial numbers of Tiangan A, B, ... nonyl and decyl as 0, ..., 8 and 9; Submarine, ugly, ..., Xu and Hai in the ground branch are also numbered 0, 1, ..., 10,1,so:
Calculate the Gregorian calendar year of the stem and branch from the known Gregorian calendar year: the number of years is reduced by 4, the remainder is divided by 10 for the heavenly stem, and the remainder is divided by 12 for the earthly branch. For example:
(1972-4)÷ 10 ≡ 8, so the heavenly stems are "nonyl";
(1972-4)÷ 12 ≡ 0, so the earthly branch is a "child".
Attachment: Given heavenly stems and earthly branches, how to get the current year as 60 years (Yang Programming).
X= heavenly stems Y= earthly branches
If x-y >; Then = 0
z = 6x-5y;
other
z = 6x-5y+60;
Discard the 60-A subsequence, put in your imagined age and year of birth, and then go back to find out the trunk and branches related to the year of A.D. ... or compare the branches of that year or the previous year, and you can also find out the corresponding branches you need. If you were born in July 1987, you only know that this year is the Year of the Rabbit (Ding Mao) and don't know what year 1987 is.
1 .jiazi 2. Ugly B 3 Bing Yin 4. Ding Mao 5. Chen Wu 6. Keith 7. Wu Geng 8. Wei Xin 9. Ren Shen 10. Gui You
1 1. JOE 12. Yihai 13. Bing Zi 14. Ding Chou 15. Wuyin 16. Bazaar 17. Chen Geng 65438.
2 1. Shen Jia 22. Yiyou 23. Xu Bing 24. Ding hai 25. Woods 26. Ji Chou 27. Geng Yin 28. Xinmao 29. Yan Chen 30. Guisi
3 1. Wu Jia 32. A micro 33. Shen Bing 34. Dingyou 35. The reform movement of 1898. Jihai 37. Gengzi 38. Xin Chou 39. Ren Yin 40. Guimao.
4 1 .Chen Jia 42. Yisi 43. Bingwu 44. Ding Wei 45. Wu Shen 46. Ji You 47. Geng Xu 48. Xinhai 49. Renzi 50. Ugly.
5 1 .52 good news. Mao yi 53. Chen Bing 54. Ding si 55 Five, five, six Wiki 57. Geng Shen 58. Heart has 59. Ren Xu 60. Guihai
Question 3: How to calculate the chronology of cadres and branches?
For example, Jia Zi is the first year, Ugly B is the second year, and Bing Yin is the third year ... Sixty years is a week. Week after week, starting from the year of Jiazi, starting from the week, and starting again and again. For example, 1929 is the lunar year, 1930 is the year of Gengwu ... and 1989 is the lunar year. The four years and Gengwu years we see on the calendar are arranged according to the chronology of trunks and branches. Divide the Gregorian calendar year by the remainder of 60, and then subtract 3 to get the monthly branch number of that year, and then check the above branches to get the age of the branches. If the serial number is less than or equal to zero, add 60 to the branch serial number. For example, find 199 1 year; 199 1÷60=33 Remaining 1 1, annual serial number of stem and branch = 1 1-3=8. Check the list of cadres and branches, and you will know that this year is the year of Wei Xin. Another example is to find the main branch of 1983: 1983÷60=33+3, and the main branch serial number =3-3=0, plus 60. Check the main branch table and know that the year is Guihai.
Dry-branch moon method
The method of keeping the moon in the main branch is not widely implemented, mainly to let astrologers calculate the eight characters. The method is as follows: in the first year of the year, the first month is the third lunar month; B or Geng Year, the first month is Wuyin; The first month of Year C or Year Xin is Geng Yin, the first month of Year Ding Nian or Year Ren is Ren Yin, and the first month of Year E or Year decyl is Jia Yin. The main branch of the first month is known, and the rest months can be inferred in the order of sixty sons.
Dry branch method
The first day of onychomycosis, the second day of ugliness, the third day of bingyin ... 60 days a week. At the weekend, it starts from Jiazi Day and goes on and on. For example, in the fourth year of the lunar calendar (1989), the first day of the first month is Ding You Day, and the second day is the Reform Day ... The seventh day of March is exactly 60 days, so the second day of March is Ding You Day again.
Chronology of cadres and branches
The earthly branches in daytime are also certain, so 12 earthly branches are allocated in 24 hours, and at night 1 1 point to 1 point, 1 point to 3 o'clock, and the rest are pushed. The day is inferred from the day, and its song is as follows:
A has given birth to a, and B, G and C come first.
Bing Xin started in Wu, and was destined to be a boxer.
You can't do it, but you can't.
That is, if the day is A or his own, the child should be accompanied by A when he was a child; If the day is b or g, it should be accompanied by c as c; On the day of Bingxin, Wu was the son of Wu; Ding Renri is a boxer; Pentecost is a seedless day. When you know your child's main branch, you can infer the rest.
Question 4: How to calculate the date of expenditure?
Question 5: The solar column formula of the trunk-branch calendar is quite complicated, because the system and cycle of the Gregorian calendar and the trunk-branch calendar are completely different. Especially, it is very difficult to solve the daily budget of a public office. At present, it is mainly solved by querying the perpetual calendar. After painstaking research, the author explored and derived a calendar formula for calculating the daily branch and the public branch, which is called "high daily branch formula" for short. The formula is simple, accurate, scientific and practical by inserting century constants and month cardinality, which completely solves the long-standing problem of calendar conversion. It is of great practical significance to edit 1 high heliostat formula1./symbolic meaning r: the number of heliostats, and the remainder of r divided by 60 is the number of stem and branch sequences of heliostats; S: two digits after AD minus 1, taking an integer value; U:s divided by the remainder of 4; M: month base D: date number X: century constant Note: After February of leap year, you need to add 1 to the calculated R.. The century constant 1.2 will now be the century constant x from17th century to 26th century. The corresponding list is as follows: Table 2- 1. 1 CenturyNo. N 17 19 20 2 1-170017065433. +09001901-20002001-2100 century constant x 3 47 3 1 15 0 050 table 2-1.2nd century number. 00 2301-2400 2401-2500 2501-2600 century constant x 44 281257 41.1.3 months, which is the base m of the previous months. See the following table for details: Table 2- February Base Month1234567891011February Base Month 031-kloc-0/3003/kloc-0.
Question 6: How to calculate the year, month, day and hour with heavenly stems and earthly branches? Chronology of ancient China. That is, Party A, Party B, Party C, Party D, Party E, Party B, Party G, Party A, Party B and Party B are ten, while Party A, Party B, Party C, Party B, Party C, Party D, Party B, Party B and Party B are twelve, and the branches are coordinated in sequence. Such as Jia Zi and Yi Chou, will return to Jia Zi after 60 years. It goes on and on. In China, the lunar calendar still uses the calendar year of cadres and branches.
The chronology of the dry branch sprouted in the Western Han Dynasty, began with Wang Mang, and prevailed in the late Eastern Han Dynasty. In the second year of Emperor Yuanhe of the Han and Yuan Dynasties (AD 85), the court ordered the nationwide implementation of the chronicle of cadres. Some people think that China used dry branches to record the years before Emperor Wu of the Han Dynasty. However, this is the Gregorian calendar year of the Prince, which is based on the Gregorian calendar year of the Prince, and the branch represents twelve days (the ecliptic is divided into twelve equal parts). Jupiter 1 1.862 revolves around the sky once a week, so it takes about 86 years for Tai Sui to pass through an old age, which is the so-called "Chen Chao". In the Calendar of Zhuan Xu, the first year of Tai Chu (BC 104) of Emperor Wu of the Western Han Dynasty was the prince of Bingzi, and taichu calendar changed it to Ding Chou by surpassing Chen. At the end of the Han Dynasty, Liu Xin changed the first year of Taishu to Bingzi, and the second year of Taishi (the first 95 years) from Yiyou to Bingxu. Scholars who returned to the eastern Han dynasty did not use the super-Chen method. So from the second year, the chronology of the prince and the chronology of the main branch are the same. However, according to legend, the chronology expressed by heavenly stems and earthly branches began in the period of the Yellow Emperor, and 60 pieces of Jiazi table were found in Shang Dynasty archaeology in Yin Ruins.
1. The meaning of trunk and branch: trunk and branch are the general names of heavenly stems and earthly branches.
Dry refers to heaven, * * * with 10 symbol:
1 2 3 4 5 6 7 8 9 10
Methyl ethyl propyl butyl hexyl heptyl octyl non decyl
Refers to the earth, * * * with 12 symbol:
1 2 3 4 5 6 7 8 9 10 1 1 12
The child is ugly, and the mother hasn't applied this afternoon.
2. The combination of stem and branch is used for dating. That is to say, the ten-day stem and the twelve-day branch are combined to form the stem and branch for dating. According to this arrangement method, 60 branches can be formed after six rounds of arrangement 10 symbols and five rounds of arrangement 12 symbols for ground branches on the same day. If it continues to be discharged, it will return to its original state again and again, which is what the folks call "sixty years of turning to Jiazi".
[Edit this paragraph] Sixty years Jia Zi (branch table)
1 2 3 4 5 6 7 8 9 10
Jia Chubing Yin Dingmao Wu Renshen Gui You
1 1 12 13 14 15 16 17 18 19 20
Jia Haibing Zi Ding Chou Mao Xin Si Ren Wu Guiwei
2 1 22 23 24 25 26 27 28 29 30
Shen Jia Yi Youbing Xu Ding Wu Haizi ugly Geng Yin Xin Mao Renchen ghost silk
3 1 32 33 34 35 36 37 38 39 40
Wu Jia translated Shen Dingyou, the Reform Movement of 1898, and Ji Haigeng rewarded Ren Yin Guimao.
4 1 42 43 44 45 46 47 48 49 50
Chen Jia, Bess, Bing Wuding, Wu Shen, Ji You, Geng Xu, Xin Hai, Ren Zi, Gui Chou.
5 1 52 53 54 55 56 57 58 59 60
Jia Yin, Yi Mao, Chen Bing, Ding Si, Wu Wu and Xin You have not applied for this position, and they have all failed.
[Edit this paragraph] Understand the "Twelve Branches" in combination with the actual situation
1. Match twelve animals with twelve earthly branches to form the Year of the Zodiac. (See the picture below) If the year of the main branch contains the word "zi", it is the year of the rat, and all the people born in this year are "rats"; The Year of the Ox is a year of ugliness, and all the people born in this year belong to the ox. And so on. (as shown in the following table)
Zodiac year
1 2 3 4 5 6 7 8 9 10 1 1 12
Rat, ugly cow, black snake, black horsetail, Yang Shen Houyou chicken, Gou Haizhu
2. Twelve branches represent twelve o'clock.
There are twenty-four hours in a day, but in our tradition, it is represented by twelve hours, that is, one hour is two hours. (as shown in the following table)
24-hour and 12-hour comparison table
Ugly son, ugly son, ugly son, ugly son.
23-0 1:0 1-03:03-05 :05-07:07-09:09- 1 1
At noon, I didn't apply.
1 1- 13: 13- 15: 15- 17: 17- 19: 19-2 1:2 1-23
......& gt& gt
- Related articles
- 2020 10 is it okay to go to work on September 14 of the lunar calendar 10?
- When did the dog in 94 and the pig in 95 get married? Dog man in 1994 and pig woman in 1995.
- Henan engagement custom
- Ask for the license in August-September, 20 12. Male: Gregorian calendar1March 20th, 979. Female: Gregorian calendar19865438+September 26th, 0.
- What are some suitable engagement days this month?
- The fourth word is day. What are the idioms?
- Introduction of Walnut Characters in Palace
- List of auspicious days for decoration in June 2023
- Is September 13, 2022 an auspicious day to propose marriage?
- The zodiac pig opened in July 2022. An auspicious day is a good day to open a new store.