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

Function formatTimeByMinute

module/catalogue/catalogue.go:52–56  ·  view source on GitHub ↗
(org int64)

Source from the content-addressed store, hash-verified

50}
51
52func formatTimeByMinute(org int64) time.Time {
53 t := time.Unix(org, 0)
54 location, _ := time.LoadLocation("Asia/Shanghai")
55 return time.Date(t.Year(), t.Month(), t.Day(), t.Hour(), t.Minute(), 0, 0, location)
56}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected