convert time format retuned by a select query - Mailing list pgsql-novice

From Johan Martinez
Subject convert time format retuned by a select query
Date
Msg-id CA+jMyfr2UGczBf6hbn+rXKhS2HctbHyLxpg9iw1wtcdRq1s1XA@mail.gmail.com
Whole thread Raw
Responses Re: convert time format retuned by a select query
List pgsql-novice

I would like to subtract two columns - create_time and update_time of 'timestamp without time zone' type and then order results based on subtraction-result (time interval). I checked http://www.postgresql.org/docs/current/static/functions-datetime.html , however these examples didn't work with actual column values. e.g.something like:  
'select epoch (update_time) - epoch (create_time) AS Column1 from users order by Column1; '

Any hints or documentation liks will be really nice. Thanks. 

jM

pgsql-novice by date:

Previous
From: Steve Crawford
Date:
Subject: Re: Big wide datasets
Next
From: Michael Rowan
Date:
Subject: pgAdmin3 grant wizard question