Ver código fonte

补充申报方法

1 2 semanas atrás
pai
commit
2b67b8e62f
1 arquivos alterados com 4 adições e 0 exclusões
  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())
+}