How do the months in the eight characters correspond to heavenly stems and earthly branches?

Tiangan: In the first year of Cargill,

B Geng years old, noon as the head,

Bing Xin looked for Geng at the beginning of the year.

Ding is downstream,

What to say and how to send it?

Good news is good at pursuing.

That is to say, the year of heavenly dryness is A and its own year, the first month of heavenly dryness is C, and the second month is D, followed by Wuji, Gengyin, Xinsi, Renchen and Guisi.

The eight-character earthly branches are fixed every year: Yin is established in the first month, Mao is established in February, and then it is ugly with Haizi in the afternoon. Note that the first month begins with yin, not the second month.