From: Tom Lane <tgl@sss.pgh.pa.us>
To: Watzinger, Alexander <Alexander.Watzinger@oeaw.ac.at>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Support for dates before 4713 BC
Date: Sun, 21 Aug 2022 14:04:12 -0400
Message-ID: <4161384.1661105052@sss.pgh.pa.us> (raw)
In-Reply-To: <ca438ff8331c4e109aa1b75a130948ac@oeaw.ac.at>
References: <ca438ff8331c4e109aa1b75a130948ac@oeaw.ac.at>
"Watzinger, Alexander" <Alexander.Watzinger@oeaw.ac.at> writes:
> Any chance to add support for dates before 4713 BC? We really would appreciate that.
I'm a little skeptical of the value of applying the Gregorian calendar
before 1582 AD, let alone thousands of years before the Romans invented
anything looking even vaguely like it.
Are you sure there's going to be any point whatsoever in trying to name
individual days that far back? ISTM you'd be lucky to assign a year
accurately.
> The 4713 BC limit feels very arbitrary, what is the reason for this exact limit?
There are existing equations for calculating Gregorian month/day/year from
Julian day count [1]. They work back to Julian day zero, at least if
you grant that proleptic Gregorian dates are sensible that far back.
Nobody around here has looked into whether they'd work for negative Julian
day numbers (I suspect not though, at least not without work that seems
rather pointless).
regards, tom lane
[1] https://en.wikipedia.org/wiki/Julian_day
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 using the --to and --cc options:
reply via email
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, Alexander.Watzinger@oeaw.ac.at, pgsql-general@lists.postgresql.org
Subject: Re: Support for dates before 4713 BC
In-Reply-To: <4161384.1661105052@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