MCPcopy
hub / github.com/flosch/pongo2 / IsTime

Method IsTime

value.go:81–84  ·  view source on GitHub ↗

IsTime checks whether the underlying value is a time.Time.

()

Source from the content-addressed store, hash-verified

79
80// IsTime checks whether the underlying value is a time.Time.
81func (v *Value) IsTime() bool {
82 _, ok := v.Interface().(time.Time)
83 return ok
84}
85
86// IsNil checks whether the underlying value is NIL
87func (v *Value) IsNil() bool {

Callers 2

EqualValueToMethod · 0.95
EvaluateMethod · 0.80

Calls 1

InterfaceMethod · 0.95

Tested by

no test coverage detected