mirror of
https://gitee.com/dromara/carbon.git
synced 2024-12-02 12:17:37 +08:00
统一代码风格
This commit is contained in:
parent
f0248f3a7b
commit
ff719594c8
@ -101,7 +101,6 @@ func (c Carbon) ToChineseDayString() string {
|
|||||||
x := (44*(c.Century()-1) + (c.Century()-1)/4 + 9) % 60
|
x := (44*(c.Century()-1) + (c.Century()-1)/4 + 9) % 60
|
||||||
// 计算月基数m
|
// 计算月基数m
|
||||||
m := (int(math.Pow(-1, float64(c.Month())))+1)/2*30 + (3*c.Month()-7)/5
|
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
|
index := (s/4*6 + 5*(s/4*3+u) + m + d + x) % 60
|
||||||
return stemsAndBranches[index-1]
|
return stemsAndBranches[index-1]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user