AW: AW: AW: AW: AW: Re: tinterval - operator problems o n AI X

From: Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at>
To: "'Peter Eisentraut'" <peter_e(at)gmx(dot)net>
Cc: "'thomas(at)pgsql(dot)com'" <thomas(at)pgsql(dot)com>, lockhart(at)fourpalms(dot)org, Pete Forman <pete(dot)forman(at)westerngeco(dot)com>, "'pgsql-hackers(at)postgresql(dot)org'" <pgsql-hackers(at)postgresql(dot)org>
Subject: AW: AW: AW: AW: AW: Re: tinterval - operator problems o n AI X
Date: 2001-01-18 08:40:44
Message-ID: 11C1E6749A55D411A9670001FA6879633681C0@sdexcsrv1.f000.d0188.sd.spardat.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> > > I do not have the original thread where Andreas describes
> the behavior
> > > of mktime() on his machine. Andreas, can you suggest a
> simple configure
> > > test to be used?
> >
> > #include <time.h>
> > int main()
> > {
> > struct tm tt, *tm=&tt;
> > int i = -50000000;
> > tm = localtime (&i);
> > i = mktime (tm);
> > if (i != -50000000) /* on AIX this check could also
> be (i == -1) */
> > {
> > printf("ERROR: mktime(3) does not correctly support
> datetimes before 1970\n");
> > return(1);
> > }
> > }
>
> You don't need to put this check into configure, you can just
> do the check after mktime() is used.

No, we need that info for the output functions that only use localtime.
The intent is, to not use DST before 1970 on platforms that don't have
mktime for dates before 1970.

Andreas

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dan Langille 2001-01-18 09:30:48 Re: GET DIAGNOSTICS SELECT PROCESSED INTO <int4_variable>
Previous Message J.H.M. Dassen (Ray) 2001-01-18 08:05:56 Re: GET DIAGNOSTICS SELECT PROCESSED INTO <int4_variable>