MCPcopy Create free account
hub / github.com/cortexproject/cortex / NewTimeValue

Function NewTimeValue

pkg/testexporter/correctness/time_flag.go:14–19  ·  view source on GitHub ↗

NewTimeValue makes a new TimeValue; will round t down to the nearest midnight.

(t time.Time)

Source from the content-addressed store, hash-verified

12
13// NewTimeValue makes a new TimeValue; will round t down to the nearest midnight.
14func NewTimeValue(t time.Time) TimeValue {
15 return TimeValue{
16 Time: t,
17 set: true,
18 }
19}
20
21// String implements flag.Value
22func (v TimeValue) String() string {

Callers 3

RegisterFlagsMethod · 0.85
RegisterFlagsMethod · 0.85
TestMinQueryTimeFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestMinQueryTimeFunction · 0.68