Explorar el Código

补充申报方法

1 hace 2 semanas
padre
commit
2b67b8e62f
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      common/period.go

+ 4 - 0
common/period.go

@@ -427,3 +427,7 @@ func IsJdSb(period string) bool {
 	}
 	return false
 }
+
+func GetMonthEnd(t time.Time) time.Time {
+	return t.AddDate(0, 1, -t.Day())
+}