I have a PG table column that contains a timestamp generated when a specific event happened (i.e. a birthdate)
I need to count the amount of time (in minutes or seconds) since that event.
So far I have used :
SELECT now()-time1 FROM.....
but this resturns the following format :
'HH:MM:SS' which changes to 'X days HH:MM:SS' or even 'HH:MM' if you run the select on exactly 0 seconds. As this changes all the time it makes things more difficult.
Does anybody know of a way (or an example) of a good way of achieving a result of XXXXXXXXXsecs (or even minutes) since PG Timestamp.