Skip to content

Converting the Gregorian Calendar into the Lunar Calendar for golang

License

Notifications You must be signed in to change notification settings

zhuqiyang/convertSolarToLunar-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

使用方法

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)

}

About

Converting the Gregorian Calendar into the Lunar Calendar for golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages