MCPcopy
hub / github.com/expr-lang/expr / WithTimezone

Struct WithTimezone

patcher/with_timezone.go:10–12  ·  view source on GitHub ↗

WithTimezone passes Location to date() and now() functions.

Source from the content-addressed store, hash-verified

8
9// WithTimezone passes Location to date() and now() functions.
10type WithTimezone struct {
11 Location *time.Location
12}
13
14func (t WithTimezone) Visit(node *ast.Node) {
15 if btin, ok := (*node).(*ast.BuiltinNode); ok {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected