Re: epoch to timestamp - Mailing list pgsql-sql

From Achilleus Mantzios
Subject Re: epoch to timestamp
Date
Msg-id Pine.LNX.4.44.0305121829550.18329-100000@matrix.gatewaynet.com
Whole thread Raw
In response to Re: epoch to timestamp  (Lucas Lain <lainl@aconectarse.com>)
Responses Re: epoch to timestamp  (Larry Rosenman <ler@lerctr.org>)
Re: epoch to timestamp  (Lucas Lain <lainl@aconectarse.com>)
List pgsql-sql
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



pgsql-sql by date:

Previous
From: Randall Lucas
Date:
Subject: Re: epoch to timestamp
Next
From: Larry Rosenman
Date:
Subject: Re: epoch to timestamp