Browse Source

doc: 文档注释

wangkang 1 week ago
parent
commit
4275ccee99
1 changed files with 1 additions and 1 deletions
  1. 1 1
      common/period.go

+ 1 - 1
common/period.go

@@ -315,7 +315,7 @@ func DateFormatter(date string) string {
 	return fmt.Sprintf("%s-%s-%s", date[:4], date[4:6], date[6:])
 }
 
-// 获取某一天的0点时间
+// GetNextDateTime 获取传入日期的明天 0 点
 func GetNextDateTime(d time.Time) time.Time {
 	return time.Date(d.Year(), d.Month(), d.Day()+1, 0, 0, 0, 0, d.Location())
 }