AW: AW: AW: Re: tinterval - operator problems on AIX

From: Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Pete Forman <pete(dot)forman(at)westerngeco(dot)com>, lockhart(at)fourpalms(dot)org, "'pgsql-hackers(at)postgresql(dot)org'" <pgsql-hackers(at)postgresql(dot)org>
Subject: AW: AW: AW: Re: tinterval - operator problems on AIX
Date: 2001-01-12 16:07:26
Message-ID: 11C1E6749A55D411A9670001FA6879633681B2@sdexcsrv1.f000.d0188.sd.spardat.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2001-01-12 16:13:46 Re: Re: AW: Re: GiST for 7.1 !!
Previous Message Hannu Krosing 2001-01-12 16:05:25 Re: AW: Re: GiST for 7.1 !!