How to calculate the moon column, sun column and hour column in birthday respectively?

Column is a festival, which uses branches of the lunar calendar to indicate the place where someone was born. The earth support on the moon pillar is fixed, and every month begins with silver moon and ends with the ugly month. The dividing line between months is determined by festivals: silver moon in January (from beginning of spring to Jingzhe), Uzuki in February (from Jingzhe to Qingming), Chen Yue in March (from Qingming to long summer), Mitsuki in April (from long summer to awning), noon in May (from awning to light summer) and full moon in June and September (from cold dew to beginning of winter), and full moon in October. Remember the following phrase, and you can work out the monthly work smoothly: Party A's year comes first, and Party B's year comes first. At the age of Bingxin, he went to Geng, Ding and Yin. If you want to ask where Wu Gui started, it is easy for Jia Yin to pursue it. The time bar is calculated according to daily work. From the beginning, it is calculated by five rats: A also starts from A, B, G and C, and C starts from E, Ding Ren, Geng Zi and Wu Guiren. Look at the sun stem from the child's position, and count clockwise to the time when you were born, which is the sun stem at that time. (Brand) Four pillars are composed of eight characters: Nianzhu, Zhu Yue, Rizhu, Shizhu and heavenly stems and earthly branches.

For example, someone was born at 1948 at 4 pm on the eighth day of the eighth lunar month.

Wuzi (Master of the Year)-(Root) (Juvenile) (Ancestor)

(Moon Column)-(Miao) (Youth) (Parents)

Yen Reform Movement (Japanese Lord)-(Flower) (Middle-aged) (Couple)

Geng Shen (Time Column)-(Fruit) (Old Age) (Children)