Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

农历季节是否添加一个按节气切换的? #25

Open
aazainn opened this issue Aug 7, 2024 · 1 comment
Open

农历季节是否添加一个按节气切换的? #25

aazainn opened this issue Aug 7, 2024 · 1 comment

Comments

@aazainn
Copy link

aazainn commented Aug 7, 2024

Lunar#getSeason() 方法中,看到是根据月份计算的季节,即以初一为限,但是我看到一些资料是以4个节气:立春、立夏、立秋、立冬为季节切换的,是否有考虑添加一个按节气切换季节的方法?

参考资料:

  1. https://www.cma.gov.cn/kppd/kppdqxwq/kppdjckp/201212/t20121205_194357.html
  2. https://baike.baidu.com/item/%E5%9B%9B%E5%AD%A3/2116

还有一些比较野的资料中都有提到古时以节气判断季节居多,我是选了2个比较“权威”的参考资料,都提到了以节气划分的算法。现行国标是以平均5天的气温划分的(https://www.cma.gov.cn/zfxxgk/gknr/flfgbz/bz/202307/t20230712_5642647.html )温度对于季节上的转换对于常规的工具类没有帮助,而且用到农历的很多都是一些国学经典,我认为增加一个按节气切换季节的方法是有必要的

@6tail
Copy link
Owner

6tail commented Aug 8, 2024

谢谢,有理有据,可增加按四立切换季节。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants