Subject: | Errors converting Hebrew dates to Gregorian |
As I was working on my Perl 6 module Date::Calendar::Hebrew,
I have written some Common Lisp code and some Perl 5 code
to convert Hebrew dates to Gregorian and compare four
Perl 5 modules with Reingold's and Dershowitz's
calendrica-3.0.cl in Common Lisp.
The two source files and the result file are annexed to
this RT ticket.
As you can see in the result file, there are many differences
between calendrica-3.0.cl and Date::Convert.
These differences show at least three different errors
in Date::Convert.
1) When calendrica-3.0.cl gives a negative year (BC date),
Date::Convert shifts this year by 400. The error is somewhere in
the Gregorian date processing, because I do not see why 400 would have
a special role in the Hebrew date processing.
2) In two cases, 4950-01-07 and 5048-01-21, the year is correct, but
not the month and the day. What does not appear in the result file
accompanying this ticket is that there was an error message:
Impossible year length
I guess the error is in the Hebrew calendar, when accessing the
C<%MONTH_START> hashtable.
3) In many cases, there is a 1-day difference between the reference
value from calendrica-3.0.cl and the value produced by
Date::Convert. I do not know why yet.
Can you fix these errors, please? Thanks you
in advance.
Subject: | comp-p5 |
Message body not shown because it is not plain text.
Subject: | comp-p5-result |
Message body not shown because it is not plain text.
Subject: | cvt-he-gr.cl |
Message body not shown because it is not plain text.