Skip Menu |

This queue is for tickets about the DateConvert CPAN distribution.

Report information
The Basics
Id: 130291
Status: new
Priority: 0/
Queue: DateConvert

People
Owner: Nobody in particular
Requestors: J2N-FORGET [...] orange.fr
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.16
Fixed in: (no value)



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
Download comp-p5
application/octet-stream 6.1k

Message body not shown because it is not plain text.

Subject: comp-p5-result
Download comp-p5-result
application/octet-stream 5.7k

Message body not shown because it is not plain text.

Subject: cvt-he-gr.cl
Download cvt-he-gr.cl
application/octet-stream 1.9k

Message body not shown because it is not plain text.