Subject: Re: [boost] gregorian::date limited to years 1400 - 9999
From: Oswin Krause (Oswin.Krause_at_[hidden])
Date: 2016-12-23 04:58:35
On 2016-12-23 10:29, alanbirtles2 wrote:
> The lower limit is more or less explained in the documentation
>> The implemented calendar is a "proleptic Gregorian calendar" which
>> dates back prior to the Gregorian Calendar's first adoption in 1582.
>> current implementation supports dates in the range 1400-Jan-01 to
>> 9999-Dec-31. Many references will represent dates prior to 1582 using
>> Julian Calendar, so caution is in order if accurate calculations are
>> required on historic dates. See Calendrical Calculations by Reingold &
>> Dershowitz for more details. Date information from Calendrical
>> Calculations has been used to cross-test the correctness of the
>> calendar implementation.
No, this is not an answer to the question. The documentation explains
that one has to be cautious with dates prior to 1582 but it does not
explain why the earliest date supported is 1400 and not for example 0. I
am also curious why this is the case.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk