| From: | david(at)fetter(dot)org (David Fetter) |
|---|---|
| To: | Q(at)ping(dot)be (Kurt Roeckx), pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Dates BC. |
| Date: | 2003-12-18 15:05:24 |
| Message-ID: | 200312181505.hBIF5OeI014270@fetter.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
In article <20031218131120(dot)GA11684(at)ping(dot)be> you wrote:
> I find this a little strange:
>
> select date_part('year', '0002-01-01 BC'::date);
> date_part
> -----------
> -1
>
> It seems 1 BC and 0 are the same year.
There is an unresolveable legacy problem here, in that Brahmagupta did
not yet invent the mathematical concept of 0 until ~ 598 CE, by which
time the Roman Empire had fallen (depending on whether you believe it
actually fell). We'll just have to live with some weirdness on this
one. :)
Cheers,
D
--
David Fetter david(at)fetter(dot)org http://fetter.org/
phone: +1 510 893 6100 cell: +1 415 235 3778
This is my .sig. There are many like it, but this one is mine.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2003-12-18 15:20:14 | Why isn't DECLARE CURSOR ... FOR UPDATE supported? |
| Previous Message | Shridhar Daithankar | 2003-12-18 15:04:01 | Re: Project status pages |