Example #1
0
 def __init__(self):
     from lunarcalendar import LunarCalendar
     self._p_8fb2_66c6_v = LunarCalendar()
Example #2
0
class p_8fb2_66c6_v(object):
    """
    use pyzh calendar
    http://www.hsip.cn/article/12/2005/200512162906.html
    http://www.evget.com/zh-CN/article/1694/default.aspx
    http://www.evget.com/zh-CN/article/1695/default.aspx
    """
    def __init__(self):
        from lunarcalendar import LunarCalendar
        self._p_8fb2_66c6_v = LunarCalendar()

    def p_897f_5143_751f_8fb0_v(self, p_751f_5e74_v, p_751f_6708_v,
                                p_751f_65e5_v, p_751f_6642_v):
        self.p_751f_5e74_v = p_751f_5e74_v
        self.p_751f_6708_v = p_751f_6708_v
        self.p_751f_65e5_v = p_751f_65e5_v
        self.p_751f_6642_v = p_751f_6642_v
        self.p_8fb2_66c6_751f_5e74_v, self.p_8fb2_66c6_751f_6708_v, self.p_8fb2_66c6_751f_65e5_v, self.p_958f_6708_v = self._p_8fb2_66c6_v.getLunarDate(
            self.p_751f_5e74_v, self.p_751f_6708_v, self.p_751f_65e5_v)
        self.p_8fb2_66c6_751f_8fb0_v = self.__p_8fb2_66c6_751f_8fb0_v()

    def __p_8fb2_66c6_751f_8fb0_v(self):
        """干支, 月, 日, 時, 閏"""
        p_65e9_5b50_6642_v = False
        if self.p_751f_6642_v < 1:
            p_6642_8fb0_v = p_5b50_v
            p_65e9_5b50_6642_v = True
        elif self.p_751f_6642_v < 3:
            p_6642_8fb0_v = p_4e11_v
        elif self.p_751f_6642_v < 5:
            p_6642_8fb0_v = p_5bc5_v
        elif self.p_751f_6642_v < 7:
            p_6642_8fb0_v = p_536f_v
        elif self.p_751f_6642_v < 9:
            p_6642_8fb0_v = p_8fb0_v
        elif self.p_751f_6642_v < 11:
            p_6642_8fb0_v = p_5df3_v
        elif self.p_751f_6642_v < 13:
            p_6642_8fb0_v = p_5348_v
        elif self.p_751f_6642_v < 15:
            p_6642_8fb0_v = p_672a_v
        elif self.p_751f_6642_v < 17:
            p_6642_8fb0_v = p_7533_v
        elif self.p_751f_6642_v < 19:
            p_6642_8fb0_v = p_9149_v
        elif self.p_751f_6642_v < 21:
            p_6642_8fb0_v = p_620c_v
        else:
            p_6642_8fb0_v = p_4ea5_v
        return p_6642_8fb0_v, p_65e9_5b50_6642_v