X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 0F808D1C4DB for ; Fri, 8 Aug 2003 16:22:21 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 50623-01 for ; Fri, 8 Aug 2003 13:20:53 -0300 (ADT) Received: from irko.smoothcorp.com (unknown [208.49.241.41]) by svr1.postgresql.org (Postfix) with ESMTP id 2035ED1C990 for ; Fri, 8 Aug 2003 13:22:10 -0300 (ADT) Received: from [10.0.1.63] (helo=jgardner.smoothcorp.com) by irko.smoothcorp.com with esmtp (Exim 4.12) id 19lA0H-0005Nk-00; Fri, 08 Aug 2003 09:22:09 -0700 Received: from jgardner.smoothcorp.com (localhost.localdomain [127.0.0.1]) by jgardner.smoothcorp.com (8.12.8/8.12.8) with ESMTP id h78GM7sN027173; Fri, 8 Aug 2003 09:22:07 -0700 Received: from localhost (localhost [[UNIX: localhost]]) by jgardner.smoothcorp.com (8.12.8/8.12.8/Submit) id h78GM3dX027170; Fri, 8 Aug 2003 09:22:03 -0700 From: Jonathan Gardner To: teknokrat@yahoo.com, pgsql-sql@postgresql.org Subject: Re: converting interval to timestamp Date: Fri, 8 Aug 2003 09:22:01 -0700 User-Agent: KMail/1.5 References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline Message-Id: <200308080922.02513.jgardner@jonathangardner.net> X-SA-Exim-Rcpt-To: teknokrat@yahoo.com, pgsql-sql@postgresql.org X-SA-Exim-Scanned: No; SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/72 X-Sequence-Number: 14688 -----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 availa= ble=20 functions to manipulate and extract useful information from dates and=20 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=20 helpful. - --=20 Jonathan Gardner Live Free, Use Linux! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/M84pWgwF3QvpWNwRAnOiAKC9t3rZNve8KyOgXyxMG/p75OxkTwCeP+Tv ZYuvijykpHJ3GZiwD6hIvnI=3D =3DonBr -----END PGP SIGNATURE-----