WishMeLz

生活其实很有趣

1900年至2100年公历、农历互转Js代码

/**公历年月日转农历数据 返回json**/
calendar.solar2lunar(2000,8,23);
/**农历年月日转公历年月日**/
calendar.lunar2solar(2000,7,24);

Animal: "龙"
IDayCn: "廿四"
IMonthCn: "七月"
Term: "处暑"
astro: "处女座"
cDay: 23
cMonth: 8
cYear: 2000
gzDay: "癸丑"
gzMonth: "甲申"
gzYear: "庚辰"
isLeap: false
isTerm: true
isToday: false
lDay: 24
lMonth: 7
lYear: 2000
nWeek: 3
ncWeek: "星期三"

文件地址: https://cdn.jsdelivr.net/gh/WishMelz/file/js/calendar.js