Exemplo n.º 1
0
        private GanZhi GetLunarTime()
        {
            GanZhi lunarDay = this.LunarDay;
            DiZhi  adz      = this.HourToDiZhi(this.Value.Hour);

            return(new GanZhi(this.GetTimeGan(lunarDay.Gan.ID, adz.ID), adz));
        }
Exemplo n.º 2
0
        /// <summary>
        /// 取时柱
        /// </summary>
        /// <returns></returns>
        private GanZhi GetLunarTime()
        {
            GanZhi  rz = LunarDay;
            DiZhi   sz = HourToDiZhi(Value.Hour);
            TianGan sg = GetTimeGan(rz.Gan.ID, sz.ID);

            return(new GanZhi(sg, sz));
        }
Exemplo n.º 3
0
        private GanZhi GetLunarMonth()
        {
            int     lunarCalendarMonth = this.LunarCalendarMonth;
            GanZhi  lunarYear          = this.LunarYear;
            TianGan monthGanByYear     = this.GetMonthGanByYear(lunarYear.Gan.ID, lunarCalendarMonth);

            return(new GanZhi(monthGanByYear, this.MonthToDiZhi(lunarCalendarMonth)));
        }
Exemplo n.º 4
0
        /// <summary>
        /// 取本日期的月柱
        /// </summary>
        /// <returns></returns>
        private GanZhi GetLunarMonth()
        {
            int     m  = LunarCalendarMonth;
            GanZhi  nz = LunarYear;
            TianGan tg = GetMonthGanByYear(nz.Gan.ID, m);
            DiZhi   dz = MonthToDiZhi(m);

            return(new GanZhi(tg, dz));
        }