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

增加年分界点全局配置 #182

Closed
SylarLong opened this issue Mar 29, 2024 · 4 comments · Fixed by #185
Closed

增加年分界点全局配置 #182

SylarLong opened this issue Mar 29, 2024 · 4 comments · Fixed by #185
Assignees
Labels
功能|feature new features

Comments

@SylarLong
Copy link
Owner

摘要(Summary)

🇨🇳
由于年干分割点存在争议,有些流派用立春作为分割点,有些以除夕为分界点,所以需要添加一个全局参数来供不同流派选择。


@SylarLong SylarLong added the 功能|feature new features label Mar 29, 2024
@SylarLong SylarLong self-assigned this Mar 29, 2024
@SylarLong
Copy link
Owner Author

排盘的时候年份分界点为 正月初一;行运的年份分界点固定为 立春

感谢 @lzm0x219 师兄提供的资讯。

@lzm0x219
Copy link

lzm0x219 commented Apr 4, 2024

排盘的时候年份分界点为 正月初一;行运的年份分界点固定为 立春

感谢 @lzm0x219 师兄提供的资讯。

客气了

@MillerTheBest
Copy link

我在文档里找到了yearDivide。

  1. 可是如何在代码里提出当前yearDivide的值呢?
  2. 请问当前是否默认为exact?
  3. 请问每一年的立春是否是提前输入的?或者是算法生成的日历中计算的?如何提出当前年份的立春日期?
    谢谢

@SylarLong
Copy link
Owner Author

@MillerTheBest

1.可是如何在代码里提出当前yearDivide的值呢?

请参考 https://github.com/SylarLong/iztro/blob/main/src/astro/astro.ts#L90

2.请问当前是否默认为exact?

是的,请参考 https://github.com/SylarLong/iztro/blob/main/src/astro/astro.ts#L33

3.请问每一年的立春是否是提前输入的?或者是算法生成的日历中计算的?如何提出当前年份的立春日期?

这是通过第三方库计算的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
功能|feature new features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants