how to get number of minutes?

From: "Chris Hoover" <revoohc(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: how to get number of minutes?
Date: 2006-10-06 19:22:48
Message-ID: 1d219a6f0610061222gfee862fo3883ca5659d6c07a@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

If I subtract 2 timestamps, how do I get the results returned as the total
number of minutes.

example

now() - (now()-'2 hours'::interval) = 2:00:00 -- I need the result returned
as 120 minutes.

Thanks,

Chris

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Worky Workerson 2006-10-06 19:23:16 Re: DELETE eats up all memory and crashes box
Previous Message Jacob Coby 2006-10-06 19:20:51 Re: Storing images in PostgreSQL databases (again)