MCPcopy Create free account
hub / github.com/Facets-cloud/flow / parseTS

Function parseTS

internal/stats/scan.go:176–184  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

174}
175
176func parseTS(s string) time.Time {
177 if s == "" {
178 return time.Time{}
179 }
180 if t, err := time.Parse(time.RFC3339Nano, s); err == nil {
181 return t
182 }
183 return time.Time{}
184}

Callers 1

ScanJSONLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected