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?