Example #1
0
        public string getTaiYuan()
        {
            int ganIndex = lunar.getMonthGanIndexExact() + 1;

            if (ganIndex >= 10)
            {
                ganIndex -= 10;
            }
            int zhiIndex = lunar.getMonthZhiIndexExact() + 3;

            if (zhiIndex >= 12)
            {
                zhiIndex -= 12;
            }
            return(LunarUtil.GAN[ganIndex + 1] + LunarUtil.ZHI[zhiIndex + 1]);
        }