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

想请教一下,ByLunar 函数最后面那个 isLeapMonth 是否填对填错都不影响 #18

Open
Daydaylw3 opened this issue May 19, 2024 · 0 comments

Comments

@Daydaylw3
Copy link

Daydaylw3 commented May 19, 2024

因为看到有这样一段自己计算

// 参数区间 1900.1.31~2100.12.1
m := leapMonth(year)
// 传参要求计算该闰月公历 但该年得出的闰月与传参的月份并不同
if isLeapMonth && (m != month) {
	isLeapMonth = false
}

但是又设计这个参数的意义是因为新旧兼容是嘛?

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

1 participant