pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lucas Lain <lainl@aconectarse.com>
To: Achilleus Mantzios <achill@matrix.gatewaynet.com>
Cc: bruno@wolff.to
Cc: pgsql-sql@postgresql.org
Subject: Re: epoch to timestamp
Date: Mon, 12 May 2003 12:27:05 -0300
Message-ID: <20030512122705.068fdb0e.lainl@aconectarse.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0305121829550.18329-100000@matrix.gatewaynet.com>
References: <20030512120544.5bb9c4c6.lainl@aconectarse.com>
	<Pine.LNX.4.44.0305121829550.18329-100000@matrix.gatewaynet.com>

thank everybody ... thank you very much!
works great!


On Mon, 12 May 2003 18:30:11 -0200 (GMT+2)
Achilleus Mantzios <achill@matrix.gatewaynet.com> wrote:

> On Mon, 12 May 2003, Lucas Lain wrote:
> 
> > i really dont know how to do it ... i'm a newbie
> > it is something like this?
> > 
> > select cast(105471234 AS abstime) ... 
> > 
> > and then? 
> 
> Just do
> select 105471234::abstime::timestamp;
> 
> > 
> > 
> > 
> > On Fri, 9 May 2003 16:36:48 -0500
> > Bruno Wolff III <bruno@wolff.to> wrote:
> > 
> > > 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.
> > > 
> > 
> > 
> > 
> 
> -- 
> ==================================================================
> Achilleus Mantzios
> S/W Engineer
> IT dept
> Dynacom Tankers Mngmt
> Nikis 4, Glyfada
> Athens 16610
> Greece
> tel:    +30-210-8981112
> fax:    +30-210-8981877
> email:  achill@matrix.gatewaynet.com
>         mantzios@softlab.ece.ntua.gr
> 
> 


-- 
Lucas Lain
lainl@aconectarse.com




view thread (12+ messages)  latest in thread

Message-ID: <20030512122705.068fdb0e.lainl@aconectarse.com>
Permalink:  ../20030512122705.068fdb0e.lainl@aconectarse.com/
Also on:    postgresql.org/message-id/20030512122705.068fdb0e.lainl@aconectarse.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: lainl@aconectarse.com, achill@matrix.gatewaynet.com, bruno@wolff.to
  Subject: Re: epoch to timestamp
  In-Reply-To: <20030512122705.068fdb0e.lainl@aconectarse.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