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

fix conversion formulae #4

Closed lrosenth closed 6 years ago

lrosenth commented 6 years ago

This PR refactors the conversion algorithms so that there is always a year 0 both in Gregorian and Julian calendar and the JD contains fractions (daytime) that can be converted to a JDN if necessary.

resolves #2 resolves #3

tobiasschweizer commented 6 years ago

@lrosenth I know why tests for JDNToGregorian are failing too: it calls GregorianToJDN which we changed.