Hi i have same query in oracle
select ( TRUNC(b.pub_ts, 'MI') - DATE '1970-01-01')* 24 * 60 * 60, 
             TRUNC(b.pub_ts, 'MI') - DATE '1970-01-01'
                from abctable b  where b.blurb_id=344143
the output of query in oracle is this
and i have converted query in postgres and i want same result how can i get that , i have created the query for postgres but it is giveing interval not decimal output like oracle
 select  ( date_trunc('minute', b.pub_ts) - DATE '1970-01-01')* 24 * 60 * 60,
                              date_trunc('minute', b.pub_ts) - DATE '1970-01-01'
  FROM abc b WHERE b.blurb_id=344143;  
I have tried many solution . can you help me out.

