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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pete Forman <pete(dot)forman(at)westerngeco(dot)com>
Cc: lockhart(at)fourpalms(dot)org, Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at>, "'pgsql-hackers(at)postgresql(dot)org'" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: AW: Re: tinterval - operator problems on AIX
Date: 2001-01-12 17:34:51
Message-ID: 16586.979320891@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Pete Forman <pete(dot)forman(at)westerngeco(dot)com> writes:
> It is fairly arbitrary what the answer to this question is: if six
> months is subtracted from a to give b, should a.local.hour =
> b.local.hour or should a.utc.hour = b.utc.hour? If you want the
> former then set tm_isdst = -1 before calling mktime.

It's not arbitrary: we want the former. Anything else generates
bug reports from people who expect "9/1/2000 - six months" to
produce "3/1/2000", not sometime late in the evening of 2/29/2000.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2001-01-12 17:39:44 Re: Re: Beta2 ... ?
Previous Message Thomas Lockhart 2001-01-12 17:13:57 Re: FWD: bizarre behavior of 'time' data entry