func main() {
// 公历转农历
// a := convert.ConvertSolarToLunar(1998, 4, 14) // 1998-3-18
// fmt.Println(a)
// b := convert.ConvertSolarToLunar(1995, 10, 24)
// fmt.Println(b)
// 农历转公历
a := convert.ConvertLunarToSolar(1998, 3, 18, false)
fmt.Println(a)
}
-
Notifications
You must be signed in to change notification settings - Fork 0
Converting the Gregorian Calendar into the Lunar Calendar for golang
License
zhuqiyang/convertSolarToLunar-golang
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Converting the Gregorian Calendar into the Lunar Calendar for golang
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published