Closed li-xunhuan closed 2 years ago
代码:
lunar := calendar.NewLunarFromYmd(2021, 12, 18) t.Logf("星期:%v", lunar.GetSolar().GetWeek()) t.Logf("今天星期%v", lunar.GetSolar().GetWeekInChinese())
输出结果:
all_test.go:48: 星期:4 all_test.go:49: 今天星期四
代码:
输出结果: