Re: epoch to timestamp

From: Lucas Lain <lainl(at)aconectarse(dot)com>
To: Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
Cc: bruno(at)wolff(dot)to, pgsql-sql(at)postgresql(dot)org
Subject: Re: epoch to timestamp
Date: 2003-05-12 15:27:05
Message-ID: 20030512122705.068fdb0e.lainl@aconectarse.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

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

On Mon, 12 May 2003 18:30:11 -0200 (GMT+2)
Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)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(at)wolff(dot)to> wrote:
> >
> > > On Fri, May 09, 2003 at 18:05:45 -0300,
> > > Lucas Lain <lainl(at)aconectarse(dot)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(at)matrix(dot)gatewaynet(dot)com
> mantzios(at)softlab(dot)ece(dot)ntua(dot)gr
>
>

--
Lucas Lain
lainl(at)aconectarse(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dennis Gearon 2003-05-12 15:27:10 Re: odd error...
Previous Message Larry Rosenman 2003-05-12 15:26:30 Re: epoch to timestamp

Browse pgsql-sql by date

  From Date Subject
Next Message Larry Rosenman 2003-05-12 15:35:00 Re: epoch to timestamp
Previous Message Larry Rosenman 2003-05-12 15:26:30 Re: epoch to timestamp