Re: Is there a way to get just the number of seconds between two timestamps? - Mailing list pgsql-novice

From Michael Lush
Subject Re: Is there a way to get just the number of seconds between two timestamps?
Date
Msg-id Pine.LNX.4.64.0904081632560.6094@pigeon.ebi.ac.uk
Whole thread Raw
In response to Is there a way to get just the number of seconds between two timestamps?  (A B <gentosaker@gmail.com>)
Responses Re: Is there a way to get just the number of seconds between two timestamps?  (A B <gentosaker@gmail.com>)
List pgsql-novice

On Wed, 8 Apr 2009, A B wrote:
> I want to just get the number of seconds and not have to use extract
> for seconds, minutes, hours, days, months, years, etc.
> Is that possible?

I suppose you could write your own procedure and get a nice new round
thing (if your lucky,  you could reinvent the square wheel:-)

What is wrong with EXTRACT?

--
Michael
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Michael John Lush PhD            Tel:44-1223 492626
Bioinformatician
HUGO Gene Nomenclature Committee    Email: hgnc@genenames.org
European Bioinformatics Institute
Hinxton, Cambridge
URL: http://www.genenames.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


pgsql-novice by date:

Previous
From: Steve Crawford
Date:
Subject: Re: Is there a way to get just the number of seconds between two timestamps?
Next
From: Tom Lane
Date:
Subject: Re: scripts for the tutorial