MCPcopy Create free account
hub / github.com/SenseUnit/dumbproxy / AddDateRange

Function AddDateRange

jsext/dateutil.go:213–217  ·  view source on GitHub ↗
(vm *goja.Runtime)

Source from the content-addressed store, hash-verified

211}
212
213func AddDateRange(vm *goja.Runtime) error {
214 return vm.GlobalObject().Set("dateRange", func(call goja.FunctionCall) goja.Value {
215 return vm.ToValue(dateRange(mapSlice(call.Arguments, func(v goja.Value) string { return v.String() })...))
216 })
217}
218
219func timeRange(gmt bool, args ...int) bool {
220 now := time.Now()

Callers

nothing calls this directly

Calls 4

dateRangeFunction · 0.85
mapSliceFunction · 0.85
SetMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected