Re: Difference between two times as a numeric value in a stored procedure.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Stijn Vanroye" <s(dot)vanroye(at)Farcourier(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Difference between two times as a numeric value in a stored procedure.
Date: 2004-06-04 14:11:33
Message-ID: 26987.1086358293@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Stijn Vanroye" <s(dot)vanroye(at)Farcourier(dot)com> writes:
> I can't seem to find a way to substract two time values (or
> timestamp values) and get a numeric/float value. I always get the
> INTERVAL datatype.

extract(epoch from interval) may help.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Stijn Vanroye 2004-06-04 14:44:57 Re: Difference between two times as a numeric value in a stored procedure. [Scanned]
Previous Message hook 2004-06-04 13:06:15 trigger data