(ts, tz ref.Val)
| 1016 | } |
| 1017 | |
| 1018 | func timestampGetHours(ts, tz ref.Val) ref.Val { |
| 1019 | t, err := inTimeZone(ts, tz) |
| 1020 | if err != nil { |
| 1021 | return types.NewErrFromString(err.Error()) |
| 1022 | } |
| 1023 | return types.Int(t.Hour()) |
| 1024 | } |
| 1025 | |
| 1026 | func timestampGetMinutes(ts, tz ref.Val) ref.Val { |
| 1027 | t, err := inTimeZone(ts, tz) |
no test coverage detected