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