AW: AW: AW: Re: tinterval - operator problems on AIX - Mailing list pgsql-hackers

From Zeugswetter Andreas SB
Subject AW: AW: AW: Re: tinterval - operator problems on AIX
Date
Msg-id 11C1E6749A55D411A9670001FA6879633681B2@sdexcsrv1.f000.d0188.sd.spardat.at
Whole thread Raw
List pgsql-hackers
> > Yes, the annoyance is, that localtime works for dates before 1970
> > but mktime doesn't. Best would probably be to assume no DST before
> > 1970 on AIX and IRIX.
> 
> That seems like a reasonable answer to me, especially since we have
> other platforms that behave that way.  How can we do this --- just
> test for isdst = -1 after the call, and assume that means failure?

Since we have tests of the form (tm_isdst > 0) ? ... in other parts of the code
this would imho be sufficient.
BTW, I would use the above check for DST in all parts of the code.
Currently we eighter have (tm_isdst ? ....) or the above form.

Andreas 


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Re: AW: Re: GiST for 7.1 !!
Next
From: Peter Eisentraut
Date:
Subject: Re: PostgreSQL v7.1BETA3 Bundled and Available ...