tony801015 / chinese-lunar Goto Github PK
View Code? Open in Web Editor NEW命理/通書/算命
命理/通書/算命
tried these 4 test cases, and 3 different dates were given :
r = lunar("1999","2","2"); check_date( r );
r = lunar("1999","02","2"); check_date( r );
r = lunar("1999","2","02"); check_date( r );
r = lunar("1999","02","02"); check_date( r );
######################################################
checking on the day : 1999-2-2
chineseYear : 己卯
chineseMonth : 丙子
chineseDay : 壬辰
........................
lunarMonth : 九月
lunarDay : 初四
........................
solarTerms : 冬至
animal : 兔
######################################################
checking on the day : 1999-02-2
chineseYear : 己卯
chineseMonth : 丁丑
chineseDay : 乙酉
........................
lunarMonth : 腊月
lunarDay : 十七
........................
solarTerms : 大寒
animal : 兔
######################################################
checking on the day : 1999-2-02
chineseYear : 己卯
chineseMonth : 丙子
chineseDay : 壬辰
........................
lunarMonth : 七月
lunarDay : 初三
........................
solarTerms : 冬至
animal : 兔
######################################################
checking on the day : 1999-02-02
chineseYear : 己卯
chineseMonth : 丁丑
chineseDay : 乙酉
........................
lunarMonth : 腊月
lunarDay : 十七
........................
solarTerms : 大寒
animal : 兔
想请教下设计思路
如果農曆的日期同時提供一個數字鍵值較好,這樣就無需另作轉換了。以實現閉包調用。謝謝。
能否支持一下babel编译,发现在iOS6旧系统中无法支持...扩展?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.