Re: Date problem

From: "Edipo E(dot) F(dot) Melo" <edipoelder(at)ig(dot)com(dot)br>
To: "pgsql-sql" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Date problem
Date: 2000-10-07 02:56:12
Message-ID: 200010071223.e97CNkJ10864@hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, 29 Sep 2000 09:58:27 -0400, Tom Lane wrote:

Returning from previous thread, i found a solution for my
problem: "when everything fails, read the manual..."
Reading the OS/2 command reference, it says that TZ has three
parts: XXXCYYY. XXX - is the timezone name, C is the increment from UTC
time, and YYY is the name of summertime.
Ommiting the name of summertime (TZ=AST4), pgsql returned the
correct select.

>>> Not sure how this would apply to 2000-01-01, though. What timezone
>>> are you in, anyway?
>> OS/2 sets TZ=AST4ADT (I live in Brazil, Natal city).
>
>Hm. On a RedHat Linux box, with pgsql 7.0.2:
>
>regression=# show TimeZone ;
>NOTICE: Time zone is AST4ADT
>SHOW VARIABLE
>regression=# select '2000-01-01'::date::timestamp;
> ?column?
>------------------------
> 2000-01-01 00:00:00-04

[]'s

Edipo Elder F. de Melo

Browse pgsql-sql by date

  From Date Subject
Next Message Craig May 2000-10-07 03:52:06 Windows 9X
Previous Message Tom Lane 2000-10-06 21:23:43 Re: Re: [HACKERS] Counting bool flags in a complex query