MCPcopy Create free account
hub / github.com/brimdata/super / NewDuration

Function NewDuration

value.go:62–62  ·  view source on GitHub ↗
(d nano.Duration)

Source from the content-addressed store, hash-verified

60func NewInt32(i int32) Value { return newNativeValue(TypeInt32, uint64(i)) }
61func NewInt64(i int64) Value { return newNativeValue(TypeInt64, uint64(i)) }
62func NewDuration(d nano.Duration) Value { return newNativeValue(TypeDuration, uint64(d)) }
63func NewTime(ts nano.Ts) Value { return newNativeValue(TypeTime, uint64(ts)) }
64func NewFloat(t Type, f float64) Value { return newNativeValue(t, math.Float64bits(f)) }
65func NewFloat16(f float32) Value { return newNativeValue(TypeFloat16, math.Float64bits(float64(f))) }

Callers 3

EvalMethod · 0.92
CallMethod · 0.92
resultMethod · 0.92

Calls 1

newNativeValueFunction · 0.85

Tested by

no test coverage detected