MCPcopy Create free account
hub / github.com/cel-expr/cel-go / timestampGetDayOfWeek

Function timestampGetDayOfWeek

common/stdlib/standard.go:1004–1010  ·  view source on GitHub ↗
(ts, tz ref.Val)

Source from the content-addressed store, hash-verified

1002}
1003
1004func timestampGetDayOfWeek(ts, tz ref.Val) ref.Val {
1005 t, err := inTimeZone(ts, tz)
1006 if err != nil {
1007 return types.NewErrFromString(err.Error())
1008 }
1009 return types.Int(t.Weekday())
1010}
1011
1012func timestampGetHours(ts, tz ref.Val) ref.Val {
1013 t, err := inTimeZone(ts, tz)

Callers 1

initFunction · 0.70

Calls 4

NewErrFromStringFunction · 0.92
IntTypeAlias · 0.92
inTimeZoneFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected