This commit is contained in:
2019-10-29 09:06:54 +08:00
parent 9d047c848a
commit 11702093ed
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1371,7 +1371,7 @@ func SunAngle(JD, Lon, Lat, TZ float64) float64 {
func GetGZ(year int) string {
tiangan := []string{"庚", "辛", "壬", "癸", "甲", "乙", "丙", "丁", "戊", "已"}
dizhi := []string{"申", "酉", "戌", "亥", "子", "丑", "寅", "卯", "辰", "巳", "午", "未"}
t := year - (year / 100 * 10)
t := year - (year / 10 * 10)
d := year % 12
return tiangan[t] + dizhi[d] + "年"
}