(ts, tz ref.Val)
| 1002 | } |
| 1003 | |
| 1004 | func timestampGetDayOfWeek(ts, tz ref.Val) ref.Val { |
| 1005 | t, err := inTimeZone(ts, tz) |
| 1006 | if err != nil { |
| 1007 | return types.NewErrFromString(err.Error()) |
| 1008 | } |
| 1009 | return types.Int(t.Weekday()) |
| 1010 | } |
| 1011 | |
| 1012 | func timestampGetHours(ts, tz ref.Val) ref.Val { |
| 1013 | t, err := inTimeZone(ts, tz) |
no test coverage detected