The glitch starts with the existence of “year 0”: there's no such thing in the Christian calendars, it goes straight from 1BC to 1AD. (Zero didn't even exist in the 6th century when the Anno Domini epoch was set).
In a zero based array type language. In pascal I believe arrays can start where you want them to as in "array[-10..10] of integer". It's been a while though.
There is no year zero. Trying to compute with one is almost certainly an error. Trying to work with it is like dividing by zero - it does not make sense.
The year "1" was originally a Julian Date. Using a Gregorian Date before the calendar was introduced is almost certainly an error.
For ancient things, use Before Present, where I believe Present is defined to be sometime in 1950 or there about. For "modern" things (varying definitions of modern) use a sensible format/calendar that works in your database.
> The first century starts at 0001-01-01 00:00:00 AD, although they did not know it at the time. This definition applies to all Gregorian calendar countries. There is no century number 0, you go from -1 century to 1 century. If you disagree with this, please write your complaint to: Pope, Cathedral Saint-Peter of Roma, Vatican.
The glitch starts with the existence of “year 0”: there's no such thing in the Christian calendars, it goes straight from 1BC to 1AD. (Zero didn't even exist in the 6th century when the Anno Domini epoch was set).
They acknowledge that in the article, and make it clear that it really refers to 1 BC.
And that's also why we are in the 21st century, not the 20th.
Arr[0] is the first element of an array, not the “zeroth”.
In a zero based array type language. In pascal I believe arrays can start where you want them to as in "array[-10..10] of integer". It's been a while though.
There is no year zero. Trying to compute with one is almost certainly an error. Trying to work with it is like dividing by zero - it does not make sense.
The year "1" was originally a Julian Date. Using a Gregorian Date before the calendar was introduced is almost certainly an error.
For ancient things, use Before Present, where I believe Present is defined to be sometime in 1950 or there about. For "modern" things (varying definitions of modern) use a sensible format/calendar that works in your database.
But Arr could be empty or uninitialised...
They're just using astronomical year numbering.
> The first century starts at 0001-01-01 00:00:00 AD, although they did not know it at the time. This definition applies to all Gregorian calendar countries. There is no century number 0, you go from -1 century to 1 century. If you disagree with this, please write your complaint to: Pope, Cathedral Saint-Peter of Roma, Vatican.
https://www.postgresql.org/docs/9.0/functions-datetime.html#...