pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Vysokovskih <av@ural.org>
To: Mageshwaran <j_mageshwaran@sifycorp.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: UNIX TIME STAMP
Date: Tue, 3 Apr 2007 20:58:15 +0600
Message-ID: <713873365.20070403205815@ural.org> (raw)
In-Reply-To: <4611F0F5.9020308@sifycorp.com>
References: <4611F0F5.9020308@sifycorp.com>

Hello, Mageshwaran.

> Is there any function in postgresql7.1.3 to convert unix time stamp to
> normal date and time format

select date(timestamp 'epoch' + unixtime_column * interval '1 second') from Table;

-- 
Regards,
 Alexander Vysokovskih                  mailto:av@ural.org




view thread (2+ messages)

Message-ID: <713873365.20070403205815@ural.org>
Permalink:  ../713873365.20070403205815@ural.org/
Also on:    postgresql.org/message-id/713873365.20070403205815@ural.org

 · 

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-admin@postgresql.org
  Cc: av@ural.org, j_mageshwaran@sifycorp.com
  Subject: Re: UNIX TIME STAMP
  In-Reply-To: <713873365.20070403205815@ural.org>

* 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