|
Boost : |
Subject: Re: [boost] gregorian::date limited to years 1400 - 9999
From: Viacheslav Usov (via.usov_at_[hidden])
Date: 2017-01-12 10:15:31
On Tue, Jan 10, 2017 at 7:56 PM, Jeff Garland <jeff_at_[hidden]
> wrote:
> The 1400-10000 time range is indeed âmostly arbitraryâ â let me explain
âmostlyâ. So overall, the goal was for dates to fit within 32 bits and
span a time range that would accomodate 'most applicationsâ. And it does
play into being able to have a matching 64 bit representation of time to
cover the range at millisecond resolution.
Thanks for the explanation, but I fail to understand how this explains
1400. As far as I can tell, the Gregorian calendar types are built around
the Julian day number (JDN). 1400 is not in any way special or even near
the JDN epoch. The arithmetic in JDN/YMD conversions should work fine for
non-negative years.
What, indeed, would be affected if greg_year_policy had 0 instead of 1400?
Cheers,
V.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk