Re: Timestamp, epoch and a bit confusion

From: "Valter Douglas Lisbôa Jr(dot)" <douglas(at)trenix(dot)com(dot)br>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Timestamp, epoch and a bit confusion
Date: 2008-03-13 00:41:01
Message-ID: 200803122141.02280.douglas@trenix.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Thank you, very much. I pass through extract(epoch from x).

On Wednesday 12 March 2008 19:58:07 Aurynn Shaw wrote:
> Valter Douglas Lisbôa Jr. wrote:
> > Hello all.
> >
> > I working with postgreSQL for a couple of months, and now I trying to
> > convert timestamp columns in epoch and epoch to timestamp columns. So far
> > I could reach, all SQL I find by 'googling' returns an error.
>
> SELECT extract (epoch from your_time_field) from your_table;
> SELECT to_timestamp(your_epoch_field) from your_table;
>
> > Where can I find some documentation with this convertions fo 8.2.x
> > branch? I think the Manual on the main site is not very helpfull in this
> > case!!! ;-(
>
> And you can check out the docs @
> http://www.postgresql.org/docs/current/static/functions-datetime.html#FUNCT
>IONS-DATETIME-EXTRACT
>
>
> Hope that helps,
> --
> Aurynn Shaw
>
> The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564 ext 103
> PostgreSQL Replication, Consulting, Custom Development, 24x7 support
>
> ashaw(at)commandprompt(dot)com

--
Valter Douglas Lisbôa Jr.
Sócio-Diretor
Trenix - IT Solutions
"Nossas Idéias, suas Soluções!"
www.trenix.com.br
contato(at)trenix(dot)com(dot)br
Tel. +55 19 3402.2957
Cel. +55 19 9183.4244

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jamie Tufnell 2008-03-13 02:42:49 Re: Composite UNIQUE across two tables?
Previous Message Aurynn Shaw 2008-03-12 22:58:07 Re: Timestamp, epoch and a bit confusion