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

Function windowLabel

internal/stats/report.go:242–247  ·  view source on GitHub ↗
(since time.Time)

Source from the content-addressed store, hash-verified

240}
241
242func windowLabel(since time.Time) string {
243 if since.IsZero() {
244 return "all-time"
245 }
246 return "since " + since.Format("2006-01-02")
247}
248
249// weekStart returns Monday 00:00 UTC of t's ISO week (zero in → zero out).
250func weekStart(t time.Time) time.Time {

Callers 1

BuildStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected