Re: BUG #1993: Adding/subtracting negative time intervals

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Klint Gore <kg(at)kgb(dot)une(dot)edu(dot)au>
Cc: Russell Smith <mr-russ(at)pws(dot)com(dot)au>, pgsql-bugs(at)postgresql(dot)org, Nicholas <hb(at)x256(dot)com>
Subject: Re: BUG #1993: Adding/subtracting negative time intervals
Date: 2005-10-25 03:21:52
Message-ID: 8993.1130210512@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Klint Gore <kg(at)kgb(dot)une(dot)edu(dot)au> writes:
> That's changed since v7.4.7

Yup. '1 week' = '7 days' which is no longer the same as 7*24 hours.
In particular, as of 8.1 local noon plus one day is still local noon,
even if there was a DST change in between. Adding 24 hours, on the
other hand, might give 11am or 1pm.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Jeff Tong 2005-10-25 03:28:54 Re: BUG #1985: cannot insert Chinese character into a table
Previous Message Klint Gore 2005-10-25 02:48:10 Re: BUG #1993: Adding/subtracting negative time intervals

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Fuhr 2005-10-25 03:38:26 Re: BUG #1993: Adding/subtracting negative time intervals
Previous Message Qingqing Zhou 2005-10-25 03:21:07 Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance