waterbeside / lunisolar

Typescript农历库,支持阴历公历互转,支持各类黄历数据查询,如八字四柱、阴历、神煞宜忌、建除十二神、胎神占方、吉神方位、五行纳音等。支持自定义插件。

Home Page:https://lunisolar.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

获取2100年后的指定节气日期报错了,好像不支持?

freemanercom opened this issue · comments

commented

TypeError: Cannot read properties of undefined (reading 'toString')
at Function.e.getYearTermDayList (/XXXXXXXXXXXXXXXXXXXXXXX/node_modules/lunisolar/dist/lunisolar.js:1:15821)
at Function.e.findDate (/XXXXXXXXXXXXXXXXXXXXXXX/node_modules/lunisolar/dist/lunisolar.js:1:16308)

commented

貌似2100后是个麻烦事... ,感谢 先关闭了

是的,暂时只支持1901到2100年的查询。现在正在开发使用寿星天文历算法的插件,到时会支持更大范围的查询。
谢谢。