pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ross J. Reedstrom <reedstrm@rice.edu>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Treat <xzilla@users.sourceforge.net>
Cc: Aspire Something <aspire420@hotpop.com>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-bugs@postgresql.org
Subject: Re: [BUGS] Date Return must be As per Natural Calander
Date: Tue, 25 Feb 2003 11:16:00 -0600
Message-ID: <20030225171559.GA13465@wallace.ece.rice.edu> (raw)
In-Reply-To: <7495.1046145998@sss.pgh.pa.us>
References: <001301c2db58$29f7b5e0$c9c832c0@societykotla>
	<1046127599.1015.318.camel@camel>
	<7495.1046145998@sss.pgh.pa.us>

On Mon, Feb 24, 2003 at 11:06:38PM -0500, Tom Lane wrote:
> Robert Treat <xzilla@users.sourceforge.net> writes:
> > I guess adding 1 day to 1752-09-02 should give us 1752-09-14, but your
> > right, it gives us 1752-09-03.
> 
> As was pointed out at length just recently, the transition from Julian
> to Gregorian calendars happened at different times in different places.
> So the above claim is only correct for some places.
> 
> The conclusion from the previous discussion was that our existing
> behavior (extrapolate Gregorian rules backwards indefinitely) is as
> defensible as anything else that would be likely to get coded.

To quote SQL1992:

  4.5.3  Operations involving datetimes and intervals

  [...]
  Arithmetic operations involving items of type datetime or inter-
  val obey the natural rules associated with dates and times and
  yield valid datetime or interval results according to the Gregorian
  calendar.

Ross



view thread (7+ messages)  latest in thread

Message-ID: <20030225171559.GA13465@wallace.ece.rice.edu>
Permalink:  ../20030225171559.GA13465@wallace.ece.rice.edu/
Also on:    postgresql.org/message-id/20030225171559.GA13465@wallace.ece.rice.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: reedstrm@rice.edu, tgl@sss.pgh.pa.us, xzilla@users.sourceforge.net, aspire420@hotpop.com, pgsql-bugs@postgresql.org
  Subject: Re: [BUGS] Date Return must be As per Natural Calander
  In-Reply-To: <20030225171559.GA13465@wallace.ece.rice.edu>
  References: <001301c2db58$29f7b5e0$c9c832c0@societykotla> <1046127599.1015.318.camel@camel> <7495.1046145998@sss.pgh.pa.us> <20030225171559.GA13465@wallace.ece.rice.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox