dhlab-basel / JDNConvertibleCalendar

Different calendars can be freely converted using Julian Day Number
GNU Affero General Public License v3.0
4 stars 3 forks source link

check handling of year 0 #3

Closed tobiasschweizer closed 6 years ago

tobiasschweizer commented 6 years ago

fourmilab.ch uses the following convention:

While one can't properly speak of “Gregorian dates” prior to the adoption of the calendar in 1582, the calendar can be extrapolated to prior dates. In doing so, this implementation uses the convention that the year prior to year 1 is year 0. This differs from the Julian calendar in which there is no year 0—the year before year 1 in the Julian calendar is year −1. The date December 30th, 0 in the Gregorian calendar corresponds to January 1st, 1 in the Julian calendar.

http://fourmilab.ch/documents/calendar/

When doing dealing with CalendarDate, we have to take that into account (it matters in which calendar we are).

tobiasschweizer commented 6 years ago

I think here it is done differently: http://keisan.casio.com/exec/system/1227779487

tobiasschweizer commented 6 years ago

see also https://bowie.gsfc.nasa.gov/time/julian.html

benjamingeer commented 6 years ago

My interpretation of this question: https://github.com/dhlab-basel/Knora/issues/578