(ts, tz ref.Val)
| 1008 | } |
| 1009 | |
| 1010 | func timestampGetDayOfWeek(ts, tz ref.Val) ref.Val { |
| 1011 | t, err := inTimeZone(ts, tz) |
| 1012 | if err != nil { |
| 1013 | return types.NewErrFromString(err.Error()) |
| 1014 | } |
| 1015 | return types.Int(t.Weekday()) |
| 1016 | } |
| 1017 | |
| 1018 | func timestampGetHours(ts, tz ref.Val) ref.Val { |
| 1019 | t, err := inTimeZone(ts, tz) |
no test coverage detected