MCPcopy Create free account
hub / github.com/expr-lang/expr / Now2

Method Now2

test/issues/823/issue_test.go:65–67  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

63}
64
65func (e *envWithMethods) Now2(ctx context.Context) time.Time {
66 return time.Now()
67}
68
69func (e *envWithMethods) Date2(ctx context.Context) time.Time {
70 return time.Date(2000, 1, 1, 0, 0, 0, 0, time.UTC)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected