Open richardkyk opened 4 years ago
@richardkyk chinese-lunar-calendar 这个包是好的
console.log(solarLunar.solar2lunar(2020, 1, 25)); { lYear: 2020, lDay: 1, animal: '鼠', yearCn: '二零二零年', monthCn: '正月', dayCn: '初一', cYear: 2020, cMonth: 1, cDay: 25, gzYear: '己亥', gzMonth: '丁丑', gzDay: '丁卯', isToday: false, isLeap: false, nWeek: 6, ncWeek: '星期六', isTerm: false, term: '' }
gzYear: '己亥', should be 庚子
gzYear 是根据立春日(大概2月4日左右)来结算的,2020-01-25还属于“己亥”,2020-02-04(立春)开始是“庚子”
gzYear: '己亥', should be 庚子