From bffb400064a4180639604ad3245e147b856249f9 Mon Sep 17 00:00:00 2001 From: gouguoyin <245629560@qq.com> Date: Mon, 15 Mar 2021 22:57:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calendar.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/calendar.go b/calendar.go index 1be5e2f..50aa108 100755 --- a/calendar.go +++ b/calendar.go @@ -2,7 +2,6 @@ package carbon import ( "math" - "strconv" ) var ( @@ -102,7 +101,7 @@ func (c Carbon) ToChineseDayString() string { x := (44*(c.Century()-1) + (c.Century()-1)/4 + 9) % 60 // 计算月基数m m := (int(math.Pow(-1, float64(c.Month())))+1)/2*30 + (3*c.Month()-7)/5 - + index := (s/4*6 + 5*(s/4*3+u) + m + d + x) % 60 return stemsAndBranches[index-1] }