Re: Date/Time Types : internals

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: cousinflo(at)free(dot)fr, pgsql-docs(at)postgresql(dot)org
Subject: Re: Date/Time Types : internals
Date: 2012-04-18 20:14:44
Message-ID: 9773.1334780084@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

"Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov> writes:
> I guess the point is that for hundreds of years, the same day could
> have a different date depending which country's calendar you were
> looking at. I'm not entirely clear why there's a problem if you
> pick the Gregorian calendar and apply it retroactively.

Which is, in fact, exactly what our code does. I think that bit in the
docs is trying to explain why we do that rather than try to get the
code to reflect what people really used back then.

A possibly comparable point is that for timezone info we use the Olsen
database (tzdata), which *does* make an effort to reflect historical
realities. In consequence, at least once every several months we
get somebody complaining about what a strange GMT offset he's seeing
for timestamps before 1900 or so. If there's anyone out there who
actually likes that behavior, we've not heard about it. (Not that
I am going to try to get Olsen et al to change their policy.)

regards, tom lane

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message gabrielle 2012-04-18 22:38:41 Re: separate Privileges section for SQL reference pages?
Previous Message Kevin Grittner 2012-04-18 19:39:16 Re: Date/Time Types : internals