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

lunarCalendar.lunarToSolar方法沒有檢查月和日的最大值 #8

Open
Holi0317 opened this issue Aug 3, 2015 · 0 comments
Open

Comments

@Holi0317
Copy link

Holi0317 commented Aug 3, 2015

Node v0.12.7
Type .help for more information
nesh> .require lunar-calendar
lunarCalendar = require("lunar-calendar")
nesh> lunarCalendar.lunarToSolar(2015, 6, 29)
{ year: 2015, month: 8, day: 13 }
nesh> lunarCalendar.lunarToSolar(2015, 100, 100)
{ year: 2016, month: 5, day: 17 }
nesh> lunarCalendar.lunarToSolar(2100, 100, 100)
{ year: 2101, month: 5, day: 8 }
nesh> lunarCalendar.lunarToSolar(2100, 100, 100)
nesh> lunarCalendar.lunarToSolar(2015, Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER)
{ year: NaN, month: NaN, day: NaN }
nesh> 

你懂得

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