MCPcopy
hub / github.com/google/mangle / NewPointInterval

Function NewPointInterval

ast/temporal.go:339–342  ·  view source on GitHub ↗

NewPointInterval creates an interval representing a single point in time.

(t time.Time)

Source from the content-addressed store, hash-verified

337
338// NewPointInterval creates an interval representing a single point in time.
339func NewPointInterval(t time.Time) Interval {
340 bound := NewTimestampBound(t)
341 return Interval{Start: bound, End: bound}
342}
343
344// EternalInterval returns an interval representing all time (negative infinity to positive infinity).
345// This is used for facts without temporal annotations.

Callers 2

TestIntervalFunction · 0.85

Calls 1

NewTimestampBoundFunction · 0.85

Tested by 1

TestIntervalFunction · 0.68