Re: Timestamp problem

From: Ed Loehr <eloehr(at)austin(dot)rr(dot)com>
To: Bernie Huang <bernie(dot)huang(at)ec(dot)gc(dot)ca>
Cc: PGSQL-SQL <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Timestamp problem
Date: 2000-07-10 19:07:31
Message-ID: 396A1EF3.A0D7598B@austin.rr.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Bernie Huang wrote:
>
> table
> ---------
> ...
> borrow timestamp
> return timestamp
>
> Now, I thought timestamp is in sec eg; 35434434, but in PostgreSQL, it
> shows up as datetime datatype eg; 2000-06-07 17:00:05-07.
>
> I was wondering is this format a correct one for timestamp, or is it a
> bug? Abd if I want to show the time, each retrieval I have to chop of
> the '-07' timezone at the end. Is there a way to avoid this being show
> up in Postgres?

You might want to check out the date/time and formatting functions at

http://www.postgresql.org/docs/postgres/index.html

Regards,
Ed Loehr

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Oliver Mueschke 2000-07-10 20:14:54 Re: Re: Matching and Scoring with multiple fields
Previous Message Tim Johnson 2000-07-10 18:56:08 Re: Matching and Scoring with multiple fields