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

润月时 api 会计算错误 #2

Open
leplay opened this issue Oct 13, 2014 · 2 comments
Open

润月时 api 会计算错误 #2

leplay opened this issue Oct 13, 2014 · 2 comments

Comments

@leplay
Copy link

leplay commented Oct 13, 2014

例如想查今年的农历十月初十,api 用的是 http://api.tuijs.com/lunarToSolar?year=2014&month=10&day=10

返回结果说是:
{
year: 2014,
month: 11,
day: 2
}

但在其它日历查询 2014年 11 月 2 日,结果是 润九月的初十。

@jsonzhou9
Copy link
Owner

请认真查阅文档。
@param {Number} month 农历月 范围[1-13](有闰月情况,比如当前闰9月,10表示闰9月,11表示10月)

你传入的参数month代表的就是润九月。

@leplay
Copy link
Author

leplay commented Oct 13, 2014

谢谢回复。

所以想要查询一个月份之前,必须要知道这一年是否有闰月是吗?

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