Neteza timestamp functions
30 Apr 2018
Just a quick reference of Netezza timestamp conversion functions:
- converting epoch to a timestamp
`select '1970-01-01 00:00 GMT'::timestamp + (start_time || ' sec')::interval start_time_new, t1.* `
- the opposite function - convert from timestamp to epoch
`select extract(epoch from timestamp('01/02/2017') - timestamp('01/01/1970'));`