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

Function timestampGetDayOfMonthOneBased

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

Source from the content-addressed store, hash-verified

994}
995
996func timestampGetDayOfMonthOneBased(ts, tz ref.Val) ref.Val {
997 t, err := inTimeZone(ts, tz)
998 if err != nil {
999 return types.NewErrFromString(err.Error())
1000 }
1001 return types.Int(t.Day())
1002}
1003
1004func timestampGetDayOfWeek(ts, tz ref.Val) ref.Val {
1005 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