pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
To: pgsql-sql@postgresql.org
Subject: converting epoch to timestamp
Date: Wed, 26 Oct 2005 14:35:51 +0530
Message-ID: <a97c77030510260205n246dcec7rad2818eee629c15@mail.gmail.com> (raw)

Hi,

Can anyone tell me how to convert epoch to timestamp ?

ie reverse of :

SELECT EXTRACT( epoch FROM  now() );
+------------------+
|    date_part     |
+------------------+
| 1130317518.61997 |
+------------------+
(1 row)

Regds
mallah.



view thread (9+ messages)  latest in thread

Message-ID: <a97c77030510260205n246dcec7rad2818eee629c15@mail.gmail.com>
Permalink:  ../a97c77030510260205n246dcec7rad2818eee629c15@mail.gmail.com/
Also on:    postgresql.org/message-id/a97c77030510260205n246dcec7rad2818eee629c15@mail.gmail.com

 · 

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: mallah.rajesh@gmail.com
  Subject: Re: converting epoch to timestamp
  In-Reply-To: <a97c77030510260205n246dcec7rad2818eee629c15@mail.gmail.com>

* 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