MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / TruncateToHour

Function TruncateToHour

internal/models/usage.go:57–59  ·  view source on GitHub ↗

TruncateToHour truncates a time to the start of its hour.

(t time.Time)

Source from the content-addressed store, hash-verified

55
56// TruncateToHour truncates a time to the start of its hour.
57func TruncateToHour(t time.Time) time.Time {
58 return t.Truncate(time.Hour)
59}
60
61// TruncateToWeek truncates a time to the start of its week (Monday 00:00:00 UTC).
62func TruncateToWeek(t time.Time) time.Time {

Callers 2

trackHourlyUsageMethod · 0.92

Calls

no outgoing calls

Tested by 1