From: Richard Huxton <dev@archonet.com>
To: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: converting epoch to timestamp
Date: Wed, 26 Oct 2005 10:22:25 +0100
Message-ID: <435F4AD1.3070605@archonet.com> (raw)
In-Reply-To: <a97c77030510260205n246dcec7rad2818eee629c15@mail.gmail.com>
References: <a97c77030510260205n246dcec7rad2818eee629c15@mail.gmail.com>
Rajesh Kumar Mallah wrote:
> Hi,
>
> Can anyone tell me how to convert epoch to timestamp ?
>
> ie reverse of :
>
> SELECT EXTRACT( epoch FROM now() );
I'd start with either Google or the manuals.
http://www.postgresql.org/docs/8.0/interactive/functions-datetime.html
Scroll down to the section on "epoch" here and see the example.
--
Richard Huxton
Archonet Ltd
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: dev@archonet.com, mallah.rajesh@gmail.com
Subject: Re: converting epoch to timestamp
In-Reply-To: <435F4AD1.3070605@archonet.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