Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-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

pgsql-hackers by date

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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group