From: Oliver Elphick <olly@lfix.co.uk>
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: 25 Feb 2003 07:03:13 +0000
Message-ID: <1046156593.9028.83.camel@linda.lfix.co.uk> (raw)
In-Reply-To: <1046127599.1015.318.camel@camel>
References: <001301c2db58$29f7b5e0$c9c832c0@societykotla>
<1046127599.1015.318.camel@camel>
On Mon, 2003-02-24 at 22:59, Robert Treat wrote:
> [rob@camel rms_db]$ cal 9 1752
> September 1752
> Su Mo Tu We Th Fr Sa
> 1 2 14 15 16
> 17 18 19 20 21 22 23
> 24 25 26 27 28 29 30
>
> I guess adding 1 day to 1752-09-02 should give us 1752-09-14, but your
> right, it gives us 1752-09-03.
>
> Forwarding this to -bugs
cal is only valid for Britain and British colonies (and still gets other
things wrong, because the previous year started on 25th March, but cal
doesn't know it). The date of change to the Gregorian calendar is
different for different countries. There was a discussion of this on
the patches list recently
(http://archives.postgresql.org/pgsql-patches/2003-02/msg00038.php and
the surrounding thread). The SQL spec calls for the Gregorian calendar
to be extended backwards.
The proper place for handling conversion to other calendars is through a
set of suitable functions, which haven't been written yet.
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Peace I leave with you, my peace I give unto you; not
as the world giveth, give I unto you. Let not your
heart be troubled, neither let it be afraid."
John 14:27
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: olly@lfix.co.uk, 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: <1046156593.9028.83.camel@linda.lfix.co.uk>
References: <001301c2db58$29f7b5e0$c9c832c0@societykotla> <1046127599.1015.318.camel@camel> <1046156593.9028.83.camel@linda.lfix.co.uk>
* 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