Received: from Donald.bks ([203.145.133.16]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f8EDVQ753229 for ; Fri, 14 Sep 2001 09:31:27 -0400 (EDT) (envelope-from bhuvansql@yahoo.com) Received: from Larry.bks (root@Larry.bks [200.2.1.10]) by Donald.bks (8.11.6/8.11.2) with ESMTP id f8EDUNI03121 for ; Fri, 14 Sep 2001 19:00:23 +0530 Received: from localhost (bhuvan@localhost) by Larry.bks (8.9.3/8.8.5) with ESMTP id SAA01875 for ; Fri, 14 Sep 2001 18:55:37 +0530 X-Authentication-Warning: Larry.bks: bhuvan owned process doing -bs Date: Fri, 14 Sep 2001 18:55:37 +0530 (IST) From: Bhuvan A X-Sender: bhuvan@Larry.bks To: pgsql-sql@postgresql.org Subject: How to Get Timestamp From SECONDS? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200109/75 X-Sequence-Number: 4721 Hi all, Consider this.. SELECT EXTRACT(EPOCH FROM TIMESTAMP(now())); date_part ------------ 1000467997 (1 row) Fine.. Similarly, how could i get timestamp value for SECONDS? ie.. VICE VERSA Something like this.. :) select extract(timestamp from interval('1000467997 seconds')); :) Kindly Apologize for any inconvenience. ====================================================================== "Help Mr. Wizard!" -- Tennessee Tuxedo ====================================================================== Regards, Bhuvaneswar.