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

Function timestampGetDayOfMonthZeroBased

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

Source from the content-addressed store, hash-verified

992}
993
994func timestampGetDayOfMonthZeroBased(ts, tz ref.Val) ref.Val {
995 t, err := inTimeZone(ts, tz)
996 if err != nil {
997 return types.NewErrFromString(err.Error())
998 }
999 return types.Int(t.Day() - 1)
1000}
1001
1002func timestampGetDayOfMonthOneBased(ts, tz ref.Val) ref.Val {
1003 t, err := inTimeZone(ts, tz)

Callers 1

initStandardFunction · 0.70

Calls 4

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

Tested by

no test coverage detected