Skip Menu |

This queue is for tickets about the DateTime-Calendar-Coptic CPAN distribution.

Report information
The Basics
Id: 111867
Status: new
Priority: 0/
Queue: DateTime-Calendar-Coptic

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

Bug Information
Severity: Important
Broken in: 0.03
Fixed in: (no value)



Subject: from_object method
According to the DateTime wiki (http://datetime.perl.org/wiki/datetime/page/Calendar_Modules) the conversion from one calendar to another should use a "utc_rd_values" method in the "From" calendar and a "from_object" method in the "To" calendar. This "from_object" method exists in DateTime::Calendar::Coptic, but it is not documented and it fails. Try the minimal example below use DateTime; use DateTime::Calendar::Coptic; my $d1 = DateTime::Calendar::Coptic->from_object(object => DateTime->now); with version 0.03. It fails with the following message: Undefined subroutine &DateTime::Calendar::Coptic::validate called at /home/jf/perl5/lib/perl5/DateTime/Calendar/Coptic.pm line 73. I have looked into the source and you should add a "use" line to declare Params::Validate. In addition, the blessed hash should contain other attributes in addition to "rd" and "rd_secs": Rata Die nanoseconds, year, month and day. So can you fix this issue, please?