Tian Gan Di Zhi Converter (天干地支)
Read as UTC+8, the clock Beijing, Singapore, Kuala Lumpur, Hong Kong and Taipei share today. Older clock times may need converting first: Singapore ran on UTC+7:30 from 1945 to the end of 1981.
The sixty-pair cycle
Pick any pair, or type one from a family register, gravestone or old book, to see which years it can mean. Tags show the pillars for the date above.
- Years, 1701–2100
- Each year listed runs from about February to about February of the next.
- Next days with this pair
- Named after this year
How the count works
Ten stems and twelve branches pair off in step, and the cycle closes after 60 because that is the lowest common multiple of 10 and 12. Odd positions meet only odd positions, which is why 甲子 exists and 甲丑 does not.
| Pillar | Turns at | Rule |
|---|---|---|
| Year | The instant of Lichun | This is the bazi rule. The lunar year, which the Hong Kong Observatory and the official calendar use, starts at Lunar New Year instead. Either date can come first, up to about two weeks apart (16 days at most in 1901–2100), so they can disagree between about 21 January and 19 February. |
| Month | Each of the twelve jie terms | Each jie opens a month. The year stem sets the month stems: the 寅 month of a 甲 or 己 year is 丙寅. |
| Day | Midnight | A plain sixty-day count, tied to neither sun nor moon. Schools that start the day at 23:00 change it an hour earlier. |
| Hour | Each odd hour | Two-hour blocks. The day stem sets the hour stems. |
The ten stems
| Stem | Pinyin | Yin-yang and element |
|---|---|---|
| 甲 | jiǎ | Yang Wood |
| 乙 | yǐ | Yin Wood |
| 丙 | bǐng | Yang Fire |
| 丁 | dīng | Yin Fire |
| 戊 | wù | Yang Earth |
| 己 | jǐ | Yin Earth |
| 庚 | gēng | Yang Metal |
| 辛 | xīn | Yin Metal |
| 壬 | rén | Yang Water |
| 癸 | guǐ | Yin Water |
The twelve branches
| Branch | Pinyin | Animal | Hours | Month opens at |
|---|---|---|---|---|
| 子 | zǐ | Rat | 23:00–00:59 | Major Snow |
| 丑 | chǒu | Ox | 01:00–02:59 | Minor Cold |
| 寅 | yín | Tiger | 03:00–04:59 | Start of Spring |
| 卯 | mǎo | Rabbit | 05:00–06:59 | Awakening of Insects |
| 辰 | chén | Dragon | 07:00–08:59 | Pure Brightness |
| 巳 | sì | Snake | 09:00–10:59 | Start of Summer |
| 午 | wǔ | Horse | 11:00–12:59 | Grain in Ear |
| 未 | wèi | Goat | 13:00–14:59 | Minor Heat |
| 申 | shēn | Monkey | 15:00–16:59 | Start of Autumn |
| 酉 | yǒu | Rooster | 17:00–18:59 | White Dew |
| 戌 | xū | Dog | 19:00–20:59 | Cold Dew |
| 亥 | hài | Pig | 21:00–22:59 | Start of Winter |
Years known by their pair
Events across East Asia and Vietnam are still named after the year they happened in. Pick a pair to open it in the grid.
| Pair | Year | Event | Where |
|---|---|---|---|
| 672 | Jinshin War | Japan | |
| 1592 | Imjin War | Korea | |
| 1868 | Boshin War | Japan | |
| 1882 | Imo Incident | Korea | |
| 1894 | First Sino-Japanese War | China | |
| 1898 | Hundred Days’ Reform | China | |
| 1901 | Boxer Protocol | China | |
| 1911 | 1911 Revolution | China | |
| 1945 | Vietnamese famine of 1945 (Ất Dậu) | Vietnam | |
| 1968 | Tet Offensive (Mậu Thân) | Vietnam |
From days to years
The cycle first counted days, on the oracle bones of the late Shang dynasty. Counting years came much later: the earliest example found so far is in the silk manuscripts from Mawangdui tomb 3, sealed in 168 BC, and it became common under the Western Han.
Questions
- This happens between about 21 January and 19 February. The year pillar here turns at Lichun, the bazi rule. The official calendar and lunar calendars turn at Lunar New Year. When they differ, the result shows both years and the date each one starts.
- This gives the four pillars themselves, for looking up dates and checking records. For ten gods, hidden stems and the rest, use the bazi chart tool.
- No. The time you enter is read as UTC+8, with no longitude correction. Solar-term times use UTC+8 from 1929 and Beijing mean time (UTC+7:45:40) before that. Some bazi schools adjust the time for the place of birth.
- Schools change the day at different moments. Here it changes at midnight, so 23:30 on 1 January 2000 is a 戊午 day with a 甲子 hour. Schools that start the day at 23:00 give a 己未 day, with the same 甲子 hour.
- Date conversion covers 1901 to 2100, the span we can check against the Hong Kong Observatory tables. The grid lists years back to 1701 because the year count is plain arithmetic.
- No. It all runs in your browser.
Method & sources
How it computes
All pillars follow one rule, the bazi one. The year turns at the instant of Lichun and each month at its jie solar term, from the Sun's apparent longitude at UTC+8, or Beijing mean time before 1929. The month stem follows the year stem, the day is a 60-day count that turns at midnight, and the hour stem follows the day stem. The official Lunar New Year year is shown beside it when the two differ. Valid 1901 to 2100.
What this tool implements
- Corrected 2026-10-21 in all three languages: the page claimed a '99.99% match with the National Astronomical Observatory of China official tables' and 'the same source as the Purple Mountain Observatory official tables'. Neither had a source. The method is now stated as it is: the lunar-javascript library, whose code computes solar terms with ShouXingUtil. The fact also offered to verify ganzhi dates in classical texts while the tool covers only 1900-2100; that line and the pre-1900 FAQ answer were rewritten.
- Corrected 2026-11-03 in all three languages: the 23:00 note now gives the documented split, whether the day changes, in place of an hour reading with no source. UTC+8 is stated as today's clock with Singapore's UTC+7:30 years named, Lichun is named as the bazi rule beside the official Lunar New Year rule, and the pairs are now tested against KASI samples and lunar-javascript because HKO prints none.
Sources
- Hong Kong Observatory: Gregorian-Lunar Calendar Conversion Table, 1901 to 2100, for Lunar New Year and solar-term dates. It prints no day or month pairs: hko.gov.hk
- Hong Kong Observatory forecaster blog, 15 Feb 2018: the official year pair changes at the first day of the first lunar month, and some astrology enthusiasts favour Lichun: hko.gov.hk
- Korea Astronomy and Space Science Institute, lunar-solar conversion: year and day pairs and Julian days on 16 sampled dates, read 3 Nov 2026: https://astro.kasi.re.kr/life/pageView/8
- lunar-javascript 1.7.7, an independent implementation: all four pillars compared at noon on every date from 1901 to 2100, with four term instants differing on the month: https://github.com/6tail/lunar-javascript
- Meeus, J. Astronomical Algorithms, 2nd ed., 1998: solar longitude, nutation and new moons in the calendar engine.
- Sexagenary cycle, Wikipedia: the cycle's history, the year count and the month stems, read 2 Nov 2026: https://en.wikipedia.org/wiki/Sexagenary_cycle