瀏覽代碼

补充申报方法

1 2 周之前
父節點
當前提交
2b67b8e62f
共有 1 個文件被更改,包括 4 次插入0 次删除
  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())
+}