OPN48 / cnlunar

农历,中国农历历法项目,无需数据库环境,以《钦定协纪辨方书》为核心的python3 农历、黄历、二十四节气、节假日、星次、每日凶煞、每日值神、农历建除十二神、农历每日宜忌、彭祖百忌、每日五行、二十八星宿、天干地支、农历生辰八字、时辰凶吉等开源项目。
GNU General Public License v3.0
438 stars 126 forks source link

阳历2034.1.1转换错误 lunar.py 167行 #3

Open baoshuang opened 4 years ago

baoshuang commented 4 years ago

self.lunarMonth = _leap_month # (_leap_month << 4) | self.lunarMonth self.isLunarLeapMonth = True

致: 感谢作者提供此好用的库

cuba3 commented 4 years ago

self.lunarMonth = _leap_month # (_leap_month << 4) | self.lunarMonth self.isLunarLeapMonth = True

致: 感谢作者提供此好用的库

感谢提醒,这个问题我在本地改了,网络问题代码没提交成功,现在才发现。已修复

原来这个项目是一个倍数输出,为了方便改闰月中文 将原来的大于12输出判断

self.lunarMonth = self.lunarMonth | (_leap_month << 4)

                    改成布尔输出
                    self.isLunarLeapMonth = True

再次感谢。