(ts, tz ref.Val)
| 994 | } |
| 995 | |
| 996 | func 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 | |
| 1004 | func timestampGetDayOfWeek(ts, tz ref.Val) ref.Val { |
| 1005 | t, err := inTimeZone(ts, tz) |
no test coverage detected