pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jonathan Gardner <jgardner@jonathangardner.net>
To: teknokrat@yahoo.com
To: pgsql-sql@postgresql.org
Subject: Re: converting interval to timestamp
Date: Fri, 8 Aug 2003 09:22:01 -0700
Message-ID: <200308080922.02513.jgardner@jonathangardner.net> (raw)
In-Reply-To: <bgbeoe$62e$1@localhost.localdomain>
References: <bgbeoe$62e$1@localhost.localdomain>

-----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-----



view thread (3+ messages)

Message-ID: <200308080922.02513.jgardner@jonathangardner.net>
Permalink:  ../200308080922.02513.jgardner@jonathangardner.net/
Also on:    postgresql.org/message-id/200308080922.02513.jgardner@jonathangardner.net

 · 

reply

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: jgardner@jonathangardner.net, teknokrat@yahoo.com
  Subject: Re: converting interval to timestamp
  In-Reply-To: <200308080922.02513.jgardner@jonathangardner.net>

* 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