update
This commit is contained in:
+2
-5
@@ -166,8 +166,7 @@ recalc:
|
||||
strday := []string{"初", "十", "廿", "三"}
|
||||
for i := 0; i < 13; i++ {
|
||||
var dayofLunar = 29
|
||||
tmp := uint8(magic&0x3FFE>>(13-i)) & 1
|
||||
if tmp == 1 {
|
||||
if uint8(magic&0x3FFE>>(13-i))&1 == 1 {
|
||||
dayofLunar++
|
||||
}
|
||||
if totalDay+dayofLunar > diffDay {
|
||||
@@ -222,10 +221,8 @@ func rapidSolar(year, month, day int, isLeap bool) time.Time {
|
||||
target := spring.AddDate(0, 0, totalDay+day-1)
|
||||
return target
|
||||
}
|
||||
|
||||
var dayofLunar = 29
|
||||
tmp := uint8(magic&0x3FFE>>(13-i)) & 1
|
||||
if tmp == 1 {
|
||||
if uint8(magic&0x3FFE>>(13-i))&1 == 1 {
|
||||
dayofLunar++
|
||||
}
|
||||
totalDay += dayofLunar
|
||||
|
||||
Reference in New Issue
Block a user