There are points in heavenly stems and earthly branches issue (master enters)

Let's start with Tai Chi ... There are too many pauses. ...

Tai Chi gives birth to two instruments, two instruments give birth to four elephants, four elephants give birth to gossip, gossip gives birth to sixty-four hexagrams, and sixty-four hexagrams give birth to three hundred and eighty-six hexagrams. ...

In fact, we can say that gossip breeds everything. ...

Next, the main branch:

Ten-day stems: A (ji ǐ), B (yǐ), C (bǐng), D(Dǐng), E (w ǐ), J (jǐ), G (G ǜ ng), Xin (xǐn).

Twelve earthly branches: Zi (zǐ), chou (Chou), Yin (yín), Mao (m ǐ o), Chen (chén), Si (s), Wu (), Wei (wèi) and Shen (shēn). Ugly: cattle; Yin: tiger; Thumb: rabbit; Chen: Dragon; Rudder: snake; Afternoon: horse; No: sheep; Shen: Monkey; Hey: chicken; Hey: dog; H: pigs. )

Branches are odd to odd, even to dual, ***60 pairs.

Time algorithm of trunk and branch;

Chronology of heavenly stems and earthly 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 (85 years), the court ordered the implementation of the chronicle of cadres throughout the country. Some people think that China used the official calendar before Emperor Wu of the Han Dynasty. But in fact, it is similar to the traditional calendar, which uses the position of the traditional calendar to determine the year, and the trunk and branches are only used to represent the twelve days (dividing the ecliptic into twelve equal parts); Jupiter (Tai sui) 1 1.862 orbits the sky once a week, so Tai sui will pass an extra Chen in about 86 years, which is called "". According to "Zhuan Xu Calendar", the first year (BC 104) of Emperor Wudi of the Western Han Dynasty was Prince Bingzi, and "taichu calendar" changed the ugliness by surpassing the old law. At the end of Han Dynasty, Liu Xin's newly edited San Tong Li changed the first year of Taishu to C Zi, and the second year of Taishi (95 BC) from B You to C Xu. However, the historians in the Eastern Han Dynasty did not use the super-Chen method. Therefore, from the second year, the chronology of the prince and the chronology of the main branch are the same. The first year of a cycle is "Jiazi" (for example, the slogan of the Yellow Scarf Uprising is "Jiazi, the world is prosperous"), and the second year is "Ugly B", and so on, the cycle is 60 years; Reuse after a cycle, cycle after cycle, cycle after cycle. (60 is the least common multiple of 10 and 12, so every 60 years is a period). For example, 1644 is Shen Jianian, 60 years later, 1704 is also Shen Jianian, and 300 years later, 1944 is still Shen Jianian, so the writer Guo Moruo wrote "Three Hundred Sacrifices in Shen Jia"; 1864 is the year of Jiazi in the lunar calendar, and 1924 is the year of Jiazi in the lunar calendar 60 years later. 1865 is the second ugly year of the lunar calendar, 1925 and 1985 are the second ugly year of the lunar calendar, and so on. We must pay special attention to the fact that beginning of spring is the beginning of a year, not the first day of the first lunar month. For example, 1984 is roughly the year of Jiazi, but strictly speaking, the year of Jiazi at that time began in Lichun and ended in beginning of spring of 1985. ▲ Approximate conversion between heavenly stems and earthly branches calendar and Gregorian calendar Calculate the Gregorian calendar year of the main branch from the known Gregorian calendar year: the number of years is reduced by 3, the remainder divided by 10 is the heavenly stem, and the remainder divided by 12 is the earthly branch. (For BC, it is calculated by dividing the number of years by the remainder of 60. ) It can also be heavenly stems: year ÷ 10, regardless of the obtained quotient, depending on the remainder. If the remainder -3 is positive, count down in the order of dryness, and the number obtained is the order number of dryness. +10 if the remainder -3 is negative. 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 of 200 1 is a new year, and the algorithm is: 20010 = 200 ...1,1-3 =-2,-2+/kloc-0. 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 trunk chronology and Gregorian calendar If we put A, B, ... 0, N and D, ..., 8, 9, etc. Submarine, ugly, ..., Xu and Hai of the ground branch are also numbered 0, 1, ..., 10,1,etc. Then calculate the calendar year of the earthly branch from the known Gregorian calendar year: the number of years MINUS 4, divided by 65438+. For example: (1972-4)÷ 10 ≡ 8, so the heavenly stems are "nonones"; (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 >; = 0 then z = 6x-5y; else z = 6x-5y+60;

Yue Ji, heavenly stems and earthly branches

In the lunar year, each earthly branch corresponds to 24 solar terms from one solar term (non-neutral) to the next, and the starting period of a month is determined by the node time, not from the first day to the end of a certain lunar month. Many almanac shows that a lunar month corresponds to a branch, which is only approximate but not complete. In case of a or one's own year, the first month is roughly C Yin; B or Geng Year, the first month is roughly Wuyin; The first month of year C or Xin is roughly Geng Yin, the first month of Ding Nian or Ren Year is roughly Ren Yin, and the first month of year E or decyl is roughly Jia Yin. The first month is calculated according to the main branch, and other months are calculated according to the main branch. A cycle of 60 months and 5 years; Reuse after a cycle, cycle after cycle, cycle after cycle. Winter to the sun and the moon (the month when heavy snow turns to slight cold, similar to November of the lunar calendar) is the "Jiaziyue" in the 29th year of Jianwu (AD 53). There is a song to prove it: the first year of A is C, and the first year of B is E; Bing Xin must find Geng, and Ding is downstream; What's more, there is no way to find it, and it is not bad to pursue good news. The following table shows the corresponding solar terms, neutral atmosphere, approximate lunar month, approximate solar month, and monthly trunk branches composed of annual trunk and monthly trunk: the solar terms of monthly trunk branches are similar to lunar month, similar to solar month, or solar month, or second year, or third year, or New Year, or fifth year, or beginning of spring, Yin Yue-January rain, February, Bingyin, Wuyin and Gengyin. Qingming in Chen Yue-Grain Rain, Xia San in April, Chen Wuyue in Chen Geng, Chen Jiayue in Chen Bing, Mitsuki in summer-Miscanthus in April and May, Keith in April, Ding Yue in April, wuyue in wuyue, Miscanthus in summer solstice in May, Geng Wu in May, Wu Yueren in Wu Yuejia, Wu Yuebing, Wu Wuyue, Wu Wuyue, no moon, no summer, no moon, and no moon. Ding did not apply for the moon, beginning of autumn-Bailu was in summer, July and August, February, March, Wushen month, Gengshen month, Youyue month, Bailu-Hanlu autumnal equinox, August and September, June, Ding Youyue, June, Xinyue month, Hanlu-Chushuang, beginning of winter, September, 65438+ October, June and March. Month 1 1 month yihai month dinghai month jihai month Xinhai month guihai month heavy snow-slight cold winter solstice 1 month1February bingziyue Wuzi month Gengzi month Renzi month Jiazi month guichouyue-beginning of spring great cold/kloc-0. Month, Ding, Ugly Month, Xin, Ugly Month, Gui, Ugly Month, Ugly Month, Ugly Month, Ugly Month, Ugly Month, Ugly Month, Ugly Month, Ugly Month, Ugly Month, Ugly Month, Ugly Month, Ugly Month, Ugly Month, Ugly Month, Ugly Month, Ugly Month, Ugly Month, Ugly Month, Ugly Month, Example: 2004 is roughly the year of Shen Jianian in the lunar calendar. The bid year began in beginning of spring 19: 56 on February 4th, 2004 and ended in beginning of spring 19: 43 on February 4th, 2005. The time here is east longitude 120 standard time. Bing silver moon, February 4, 2004 19: 56, beginning of spring-Ding Maoyue, March 5, 2004 13: 56, March 5, 2004 13: 56, Qingming Wuchenyue, April 4, 2004156. Tomb-Sweeping Day, April 4th, 2004 18: 43 ~ It's been one month since Changchun, May 5th, 2004 12: 02, and Changchun, May 5th, 2004 16: 08+04. June 5, 200416: 0814: 00 ~ July 7, 2004 2: 365438+ beginning of autumn August 7, 200412: 20 ~ September 7, 200415: 00. Cold dew on June 8th, 2004+6: 49 on October 8th, 2004 ~ beginning of winter Yihai Month+065438+19: 59 on October 7th, 20041beginning of winter ~ 65438+on October 7th. It snowed at 2: 49 on February 7, 2004 ~ 20051October 5 14: 3: 00, slightly cold and ugly month, 20051October 5, 65438+ 14:3:00, slightly cold.

Heavenly stems and earthly branches Jiri

The 60th day of a year is roughly a cycle of 2 months; Reuse after a cycle, cycle after cycle, cycle after cycle. According to the confirmed documents, the dates of trunks and branches began in February of the third year of the Lu Yingong summer calendar (February 10 BC). Because julian calendar has an average of 365 days in a year, once every four years, and the AD year is divisible by 4, and there are 366 days in leap years, with an average of 365.25 days in a year, the minimum common multiple of four years 146 1 day and 60 days in Jiazi is 29,220 days, that is, 80 years. That is to say, every 80 years, the date of julian calendar month and day corresponding to the anniversary of the main branch will be repeated. (AD 4 should have been a leap year, but after julian calendar implemented it in 45 BC, it was mistaken that leap days were added every three years, so the Roman emperor Octavian ordered that leap days should be stopped in the first five years, the previous 1 year and the fourth year to correct the mistakes. ) Because the Gregorian calendar has 365 days in a normal year, and there is a leap year every four years, but if it comes to a full hundred years, the year AD can only be considered as a leap year if it is divisible by 400 (this is because according to the current legislation, the four-year leap rule will add 0.0078 days every year, and after 400 years, it will add about 3 days, and if the first 300 years of a year divisible by 400 are not considered as leap years, it will be just balanced). The average year is 365.2425 days, so the minimum common multiple of 400 years 146097 and 60 days of Jiazi is 292 days1940 days, which is 8000 years. That is to say, every 80 years, the Gregorian calendar month date corresponding to the branch date will be repeated if there is no AD year divisible by 100 but not by 400. On the whole, assuming that the Gregorian calendar will never change in the future, the Gregorian calendar month date corresponding to the date of trunk and branch will be repeated every 8000 years. 19 12 February 18, which coincides with the first day of the first month of the first lunar month, 18 February 99 12, are all "Jiazi Day".

Heavenly stems and earthly branches Jishi

During the main and branch periods, 60 hours is a five-day cycle; Recycle it once and then use it, recycle it once and recycle it once. It must be noted that the sub-time is divided into the early sub-time from 0: 00 to 1 and the late sub-time from 23: 00 to 24: 00, so when you meet A or yourself, 0: 00 to 1 is A time, and 23: 00 to 24: 00 is C time. Late night is also called midnight or night. There is also a song that starts from a day: A also adds A, and B is the beginning; Bing Xin started from Wu, and Dingren Gengzi was born; You can't do it, but you can't. The following table lists the time branch composed of solar stem and time branch. Based on Beijing time (UTC+8), the time and place are divided into Beijing time (UTC+8) A or day B or Geng Day C or Xin Riding or Ren Ri Noon or Guangxi Day 23: 00- 1: 00 A, c, g, g, n, g, n,1:00-3. Shi Geng Ren Jia 5 o'clock -7 o'clock Ding Ji Xin Gui Shi Mao Yi Mao Chen 7 o'clock -9 o'clock Wu Chen Shi Geng Chen Chen Jia Chen Bing Chen Chen IV 9 o'clock-1o'clock Ji IV Xin IV belongs to Ding IV 1 1 o'clock. Stone Man Wu Shi A Wu Shi Wu Bing Wu Shi Di 13- 15 Shi Wei Shi B Wei Shi Di 15- 17 Shi Shi A Shen Shi Bingshen Wu Shi Shen Shi Geng Shen Shi You Shi 17- 19 Shi. Shi 19-2 1, Jia Xu,,, 2 1-23, Yihai, Dinghai, Jihai and Guihai are in Xinhai.

Heavenly stems and earthly branches sequence table

1 .jiazi 2. Ugly 3. Bing Yin 4. Ding Mao 5. Chen Wu 6. Keith 7. Geng Wu 8. Wei Xin 9. Ren Shen 10. Gui You 1. Jia Xu 12. Yihai 6538. 7. Chen Geng 18. Xinsi 19. Yan Wu 20. Guiwei 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. Son 38. Xin Chou 39. Ren Yin 40. Guimao 4 1. Chen Jia 42. Yisi 43. Wu Bing 44. Ding Wei 45. Wu Shen 46. Ji You 47. Geng Yi 048. Xinhai 49. Ren Zi 50. Guichou 5 1. Good news 52. 0. Calculation method of trunk and branch of Guihai (year -3)/ 10. For Rhizoma Drynariae, such as 1 894-3 = 189 1, when1891is divided by 10, the remainder is1,that is, a (year-3 For earthly branches, such as 1894-3 = 189 1, when1891is divided by 12, the remainder is 7, that is,1894 is Wu Jianian. The premise is that a to decyl correspond to Arabic numerals 1 to 10, and sub to hai correspond to Arabic numerals 1 to 12. Second, determine the ten digits: first, when the sky is dry > = when the earth is supported, n =? | Earthly branch-heavenly stem |; Two. When the world is dry, n = 6-? (earthly branches-heavenly stems). Get the order of branches: order = 10 × ten digits+single digits. Finding the corresponding combination of stems and branches from the known Arabic numerals is the inverse operation of finding the corresponding order from the known stems and branches, such as: 25, the unit number is 5 pairs of E, the heavenly stems are E, and the corresponding Arabic numerals obtained from the above formula are 1 or13 (13 > 12, give up), 1 Yes, He Wuzi.