(ts, tz ref.Val)
| 1026 | } |
| 1027 | |
| 1028 | func timestampGetSeconds(ts, tz ref.Val) ref.Val { |
| 1029 | t, err := inTimeZone(ts, tz) |
| 1030 | if err != nil { |
| 1031 | return types.NewErrFromString(err.Error()) |
| 1032 | } |
| 1033 | return types.Int(t.Second()) |
| 1034 | } |
| 1035 | |
| 1036 | func timestampGetMilliseconds(ts, tz ref.Val) ref.Val { |
| 1037 | t, err := inTimeZone(ts, tz) |
no test coverage detected