MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / formatStartTimeDay

Function formatStartTimeDay

module/monitor/driver/influxdb-v2/util.go:36–38  ·  view source on GitHub ↗

formatStartTimeDay 将time格式化为天整

(t time.Time, location *time.Location)

Source from the content-addressed store, hash-verified

34
35// formatStartTimeDay 将time格式化为天整
36func formatStartTimeDay(t time.Time, location *time.Location) time.Time {
37 return time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 0, location)
38}
39
40// formatStartTimeDay 将startTime向前移到周一,因为week桶里的time是每个周一才有数据
41func formatStartTimeToMonday(t time.Time, location *time.Location) time.Time {

Callers 1

getTimeIntervalAndBucketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected