(ts, tz ref.Val)
| 966 | } |
| 967 | |
| 968 | func timestampGetFullYear(ts, tz ref.Val) ref.Val { |
| 969 | t, err := inTimeZone(ts, tz) |
| 970 | if err != nil { |
| 971 | return types.NewErrFromString(err.Error()) |
| 972 | } |
| 973 | return types.Int(t.Year()) |
| 974 | } |
| 975 | |
| 976 | func timestampGetMonth(ts, tz ref.Val) ref.Val { |
| 977 | t, err := inTimeZone(ts, tz) |
no test coverage detected