From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stijn Vanroye <s.vanroye@Farcourier.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Difference between two times as a numeric value in a stored procedure.
Date: Fri, 04 Jun 2004 10:11:33 -0400
Message-ID: <26987.1086358293@sss.pgh.pa.us> (raw)
In-Reply-To: <736CEAA26E7E3F48943458F760E7A32603B621@fs1010.farcourier.com>
References: <736CEAA26E7E3F48943458F760E7A32603B621@fs1010.farcourier.com>
"Stijn Vanroye" <s.vanroye@Farcourier.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, s.vanroye@Farcourier.com
Subject: Re: Difference between two times as a numeric value in a stored procedure.
In-Reply-To: <26987.1086358293@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox