Re: converting interval to timestamp - Mailing list pgsql-sql

From Jonathan Gardner
Subject Re: converting interval to timestamp
Date
Msg-id 200308080922.02513.jgardner@jonathangardner.net
Whole thread Raw
In response to converting interval to timestamp  (teknokrat <teknokrat@yahoo.com>)
List pgsql-sql
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 31 July 2003 09:05, teknokrat wrote:
> The difference of two dates/timestamps always gives an interval. is
> there a way to convert this interval into  number such as number of
> milliseconds or number of days?
>

Take a look at the User's Guide. There is great documentation on the available
functions to manipulate and extract useful information from dates and
timestamps.

I think the function you are looking for is "extract".

> Also does anyone know what field type an interval would map to in jdbc?
>

Post this question it the interfaces list. I am sure they would be more
helpful.

- --
Jonathan Gardner <jgardner@jonathangardner.net>
Live Free, Use Linux!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/M84pWgwF3QvpWNwRAnOiAKC9t3rZNve8KyOgXyxMG/p75OxkTwCeP+Tv
ZYuvijykpHJ3GZiwD6hIvnI=
=onBr
-----END PGP SIGNATURE-----


pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: [pg-sql] - Problem with duplicate table (PostgreSQL 7.2.3
Next
From: Jonathan Gardner
Date:
Subject: Re: Analyze makes queries slow...