Re: Date problem - Mailing list pgsql-sql

From Edipo E. F. Melo
Subject Re: Date problem
Date
Msg-id 200010071223.e97CNkJ10864@hub.org
Whole thread Raw
In response to Date problem  ("Edipo E. F. Melo" <edipoelder@ig.com.br>)
List 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



pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Re: [HACKERS] Counting bool flags in a complex query
Next
From: Bruce Momjian
Date:
Subject: Re: OID Perfomance - Object-Relational databases