From: Bhuvan A <bhuvansql@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: How to Get Timestamp From SECONDS?
Date: Fri, 14 Sep 2001 18:55:37 +0530 (IST)
Message-ID: <Pine.LNX.4.20.0109141852220.1812-100000@Larry.bks> (raw)
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.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: bhuvansql@yahoo.com
Subject: Re: How to Get Timestamp From SECONDS?
In-Reply-To: <Pine.LNX.4.20.0109141852220.1812-100000@Larry.bks>
References: <Pine.LNX.4.20.0109141852220.1812-100000@Larry.bks>
* 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