(ts, tz ref.Val)
| 992 | } |
| 993 | |
| 994 | func 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 | |
| 1002 | func timestampGetDayOfMonthOneBased(ts, tz ref.Val) ref.Val { |
| 1003 | t, err := inTimeZone(ts, tz) |
no test coverage detected