From: Rosser Schwarz <rosser.schwarz@gmail.com>
To: Chris <dmagick@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: getting extract to always return number of hours
Date: Tue, 5 Jan 2010 18:50:13 -0700
Message-ID: <37d451f71001051750q4d3fc5c9x355567af329fadb@mail.gmail.com> (raw)
In-Reply-To: <4B43E887.6040402@gmail.com>
References: <4B43E887.6040402@gmail.com>
On Tue, Jan 5, 2010 at 6:33 PM, Chris <dmagick@gmail.com> wrote:
> I'm trying to get extract() to always return the number of hours between two
> time intervals, ala:
SELECT extract(epoch from timeend - timestart) / 3600 from t1;
rls
--
:wq
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: rosser.schwarz@gmail.com, dmagick@gmail.com
Subject: Re: getting extract to always return number of hours
In-Reply-To: <37d451f71001051750q4d3fc5c9x355567af329fadb@mail.gmail.com>
* 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