(ts, tz ref.Val)
| 1032 | } |
| 1033 | |
| 1034 | func timestampGetSeconds(ts, tz ref.Val) ref.Val { |
| 1035 | t, err := inTimeZone(ts, tz) |
| 1036 | if err != nil { |
| 1037 | return types.NewErrFromString(err.Error()) |
| 1038 | } |
| 1039 | return types.Int(t.Second()) |
| 1040 | } |
| 1041 | |
| 1042 | func timestampGetMilliseconds(ts, tz ref.Val) ref.Val { |
| 1043 | t, err := inTimeZone(ts, tz) |
no test coverage detected