pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: 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: Mon, 24 Feb 2003 23:06:38 -0500
Message-ID: <7495.1046145998@sss.pgh.pa.us> (raw)
In-Reply-To: <1046127599.1015.318.camel@camel>
References: <001301c2db58$29f7b5e0$c9c832c0@societykotla>
	<1046127599.1015.318.camel@camel>

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.

I suppose you could imagine something that looks at the locale and
tries to guess the appropriate transition date ... but I don't foresee
anyone getting very excited about coding it.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <7495.1046145998@sss.pgh.pa.us>
Permalink:  ../7495.1046145998@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7495.1046145998@sss.pgh.pa.us

 · 

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: 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: <7495.1046145998@sss.pgh.pa.us>
  References: <001301c2db58$29f7b5e0$c9c832c0@societykotla> <1046127599.1015.318.camel@camel> <7495.1046145998@sss.pgh.pa.us>

* 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