MCPcopy Index your code
hub / github.com/coder/coder / stripTime

Function stripTime

coderd/insights_internal_test.go:338–341  ·  view source on GitHub ↗

stripTime strips the time from a time.Time value, but keeps the date and TZ.

(t time.Time)

Source from the content-addressed store, hash-verified

336
337// stripTime strips the time from a time.Time value, but keeps the date and TZ.
338func stripTime(t time.Time) time.Time {
339 y, m, d := t.Date()
340 return time.Date(y, m, d, 0, 0, 0, 0, t.Location())
341}

Callers 1

Calls 1

LocationMethod · 0.80

Tested by

no test coverage detected