The time limit of the sun column is two 23 o'clock every day. For example, if you were born on April 9, then the sun column starts at 23: 00 on April 8 and ends at 23: 00 on the 9 th.
1. Take Jiazi as 1, 1.
Heavenly stem count: a1b2c3d4e56g 7n8n9decyl 10(0)
Number of branches: Zi 1 Ugly 2 Yin 3 Mao 4 Chen 5 Si 6 noon 7 Wei 8 Shen 9 You 10 Yu1sea 12(0)
2. Calculation formula
{(AD year-1)×5+ (AD year-1)÷ 4+ days in a year} ÷60
The obtained remainder is ÷ 10, and the obtained remainder is used as the heavenly stem ordinal number.
Take the obtained remainder ÷ 12, and the obtained remainder is the ordinal number of the earthly branch.
Note: It is necessary to consider whether the current year is a leap year. If it is a leap year, February is 29 days. Any year divisible by 4 is a leap year, and any year divisible by 4 is a flat year.
For example:
For example, on March 1 day, 2008:
{ (2008- 1)×5+(2008- 1)÷4+6 1 }÷60
(1 October 65438+3 1 day, February 29th, March1day, totaling 6 1 day)
=( 10035+50 1 (integer) +6 1)÷60
= 176……37
Seeking heavenly stem: 37 ÷ 10 = 3 ... Article 7 (g)
Seeking ground support: 37 ÷ 12 = 3... 1 (son)
So in March 2008, the main branch of 1 was the Boxer Rebellion.
Method 2: Ask for the Japanese branch in the Lunar New Year, and the number of branches in the Spring Festival is 1.
First of all, we should know the dry branches and branches on the day of the Spring Festival, and we should also know that the dry branches and branches vary in size every month of that year, for example, the lunar calendar is about 30 days, and the abortion is 29 days.
Calculation formula:
The remainder of the current annual days ÷ 10 is daily work.
The remainder of the number of days in the current year ÷ 12 is a daily branch.
For example, the main branch of the second day of the second lunar month in 2008.
It is the year of Wuzi, and the main branch of the Spring Festival is Ding Chou, which is 1. The first month is 30 days, and February is two days, making a total of 32 days.
Then as follows:
Seeking heavenly stems: 32 ÷ 10 = 3...2 (the remainder is 1 in D, then 2 is E.
)
Found the earthly branch: 32 ÷ 12 = 2...8 (the remainder is ugly as 1, and that 8 is Shen).
Therefore, the main branch of the second day of the second lunar month in 2008 is Wushen.