pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Lucas Lain <lainl@aconectarse.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: epoch to timestamp
Date: Fri, 9 May 2003 16:36:48 -0500
Message-ID: <20030509213648.GA13124@wolff.to> (raw)
In-Reply-To: <20030509180545.1122c349.lainl@aconectarse.com>
References: <20030509180545.1122c349.lainl@aconectarse.com>

On Fri, May 09, 2003 at 18:05:45 -0300,
  Lucas Lain <lainl@aconectarse.com> wrote:
> 
> can anyone tell me how to convert an epoch date to timestamp format??

If the epoch date is an integer with seconds since the unix epoch,
you can cast it to abstime and then to timestamp.




view thread (12+ messages)  latest in thread

Message-ID: <20030509213648.GA13124@wolff.to>
Permalink:  ../20030509213648.GA13124@wolff.to/
Also on:    postgresql.org/message-id/20030509213648.GA13124@wolff.to

 · 

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: bruno@wolff.to, lainl@aconectarse.com
  Subject: Re: epoch to timestamp
  In-Reply-To: <20030509213648.GA13124@wolff.to>

* 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