置大唐麟德元年甲子岁正月一日己酉朔,至今明昌四年癸丑岁,积得五百三十年。以减一算,
乘岁周,分三百六十五度二十四分三十六秒。乘之,得九亿三千二百一十三万八千六百四十四分。
除交司日,差一十四万六千一百单九。以天纪六十去外,有五十九日,二千五百四十三分一秒,
命己酉,大余得戊申日,大寒及分,得大寒前后或大寒日交也。
置二之运,累加运策,满六十,去之不用,命己酉,见交运日辰乃分。
置逐运下,小余分六,因之五百,分为一辰六十分,为一刻,命子正。算外得时刻也,巳正四刻也。
假令大寒,小余二千五百四十三分。退一位,作二百五十四分。以六乘之,得一千五百二十
四分。一千分得五辰,于五百分上更除了二百五十,乃半辰也。有半辰者为正,无半辰者为初。
外有二百五十分,更有二十五分,计有二百七十五分。六十分为一刻,又除了二百四十分,为四
刻。外有三十五分,弃之。从子起,五辰在巳,有半辰,巳正四刻也。
东方木者,乃厥阴风木,天地号令之始也。春木旺,厥阴司天为主化,春风胜,厥阴司天为
主对,夏火旺,少阴司天为主化,夏热胜,少阴司天为主对,四季土旺,太阴司天为主化,四季
湿胜,太阴司天为主对,秋金旺,阳明司天为主化,秋燥胜,阳明司天为主对,冬水旺,太阳司
天为主化,冬寒胜,太阳司天为主对,天地、上下,升降、阴阳相合。天地太一天真元气,判而
为二,以为阴阳,列而为六。其在天,则为寒暑燥湿风火,三阴三阳上奉之,在地则为木火土金
水,则生长化收藏而下应之,则为知矣。天地各有三阴三阳,先圣测之,立为十二支矣。
Set the first day of the first month in the Jiazi year of the first year of Linde era of the Great Tang as a Jiyou day (new moon). From then until the Gui Chou year of the fourth year of Mingchang era, a total of five hundred and thirty years have accumulated. Subtract one calculation from this number, and multiply by the solar year cycle (one year equals 365.25 degrees), specifically three hundred sixty-five degrees, twenty-four fen, and thirty-six seconds. The product is nine hundred thirty-two million one hundred thirty-eight thousand six hundred forty-four fen. Subtract the difference for the Jiao Si day (the moment of solar term transition), which is one hundred forty-six thousand one hundred nine. After removing multiples of sixty (the sexagenary cycle) based on the Tian Ji method, there remain fifty-nine days, two thousand five hundred forty-three fen, and one second. Assigning this to the Jiyou day, the Da Yu (major remainder) corresponds to the Wushen day. This occurs around the time of Dahan (Great Cold) and the equinoxes, indicating that the transition happens before or after Dahan, or precisely on the day of Dahan.
Starting with the Da Yu of the Dahan Jiao Si day, which is fifty-nine days, add the Yun Ce (period of operation, here specified as seventy-three days).
For the second Yun (operation period), cumulatively add the Yun Ce. When it reaches sixty, discard it (as it completes a cycle). By assigning it to the Jiyou day, one can observe the Gan-Zhi (Heavenly Stems and Earthly Branches) of the day and hour when the Yun transitions, thereby distinguishing them clearly.
For each Yun, take the Xiao Yu (minor remainder in fen), divide by six, and multiply by five hundred. Divide this into sixty parts corresponding to one Chen (two-hour period), forming one Ke (a unit of time, here equivalent to 15 minutes in modern terms or a specific fractional unit). Assign this to the start of Zi (midnight). After calculation, the specific time is obtained; for example, Si Zheng (mid-Si hour) at four Ke.
For instance, let the Xiao Yu for Dahan be two thousand five hundred forty-three fen. Shift the decimal point one place to the left to get two hundred fifty-four fen. Multiply by six to obtain one thousand five hundred twenty-four fen. One thousand fen corresponds to five Chen (hours). From the remaining five hundred fen, subtract two hundred fifty, which constitutes half a Chen. If there is a half-Chen remainder, it is designated as "Zheng" (exact); if not, it is "Chu" (initial). Additionally, there are more than two hundred fifty fen, plus twenty-five fen, totaling two hundred seventy-five fen. Sixty fen make one Ke. Subtract two hundred forty fen, leaving four Ke. The remaining thirty-five fen are discarded. Counting from Zi, five Chen lands on Si. Since there is a half-Chen remainder, it is Si Zheng at four Ke.
The East belongs to Wood, which is Jueyin Wind-Wood. This marks the beginning of the commands of Heaven and Earth. In Spring, Wood Qi is prosperous; Jueyin governs the Sky as the primary transforming Qi, causing Spring Wind to prevail. Jueyin governs the Sky as the primary opposing Qi. In Summer, Fire Qi is prosperous; Shaoyin governs the Sky as the primary transforming Qi, causing Summer Heat to prevail. Shaoyin governs the Sky as the primary opposing Qi. In the transitional seasons (Late Summer/Earth), Earth Qi is prosperous; Taiyin governs the Sky as the primary transforming Qi, causing Dampness to prevail. Taiyin governs the Sky as the primary opposing Qi. In Autumn, Metal Qi is prosperous; Yangming governs the Sky as the primary transforming Qi, causing Autumn Dryness to prevail. Yangming governs the Sky as the primary opposing Qi. In Winter, Water Qi is prosperous; Taiyang governs the Sky as the primary transforming Qi, causing Winter Cold to prevail. Taiyang governs the Sky as the primary opposing Qi. Heaven and Earth, above and below, ascending and descending, Yin and Yang combine. The primordial true Qi of Taiyi within Heaven and Earth differentiates into two, becoming Yin and Yang, and arranges into six. In Heaven, these manifest as Cold, Heat, Dryness, Dampness, Wind, and Fire, received by the Three Yin and Three Yang. On Earth, they correspond to Wood, Fire, Earth, Metal, and Water, responding downward through Growth, Transformation, and Storage. Understanding this allows one to comprehend the principles. Heaven and Earth each possess Three Yin and Three Yang; the Sages measured this and established the Twelve Earthly Branches.