How to Get Timestamp From SECONDS?

From: Bhuvan A <bhuvansql(at)yahoo(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: How to Get Timestamp From SECONDS?
Date: 2001-09-14 13:25:37
Message-ID: Pine.LNX.4.20.0109141852220.1812-100000@Larry.bks
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Eisentraut 2001-09-14 14:10:09 Re:
Previous Message Yoann 2001-09-14 12:05:49 Number the lines