MCPcopy
hub / github.com/APIParkLab/APIPark / formatTimeByMinute

Function formatTimeByMinute

module/monitor/monitor.go:67–71  ·  view source on GitHub ↗
(org int64)

Source from the content-addressed store, hash-verified

65 })
66}
67func formatTimeByMinute(org int64) time.Time {
68 t := time.Unix(org, 0)
69 location, _ := time.LoadLocation("Asia/Shanghai")
70 return time.Date(t.Year(), t.Month(), t.Day(), t.Hour(), t.Minute(), 0, 0, location)
71}

Callers 15

AIChartOverviewMethod · 0.70
RestChartOverviewMethod · 0.70
TopMethod · 0.70
ApiStatisticsMethod · 0.70
SubscriberStatisticsMethod · 0.70
ProviderStatisticsMethod · 0.70
APITrendMethod · 0.70
ProviderTrendMethod · 0.70
SubscriberTrendMethod · 0.70
statisticOnApiMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected