matatua / panchanga

Automatically exported from code.google.com/p/panchanga
0 stars 1 forks source link

D::I::C constructor `from_object` throws exception #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
$ perl -mDateTime -mDateTime::Indic::Chandramana -E'say for DateTime->VERSION, 
DateTime::Indic::Chandramana->VERSION'
0.72
0.2

$ perl -mDateTime -mDateTime::Indic::Chandramana 
-e'DateTime::Indic::Chandramana->from_object(DateTime->new(year => 2012, month 
=> 1, day => 28))'
The following parameter was passed in the call to 
DateTime::Indic::Chandramana::from_object but was not listed in the validation 
options: local_rd_secs
 at …/DateTime/Indic/Chandramana.pm line 516
        DateTime::Indic::Chandramana::from_object('DateTime::Indic::Chandramana', 'DateTime=HASH(0x1485eb0)') called at -e line 1

Original issue reported on code.google.com by lars.die...@googlemail.com on 2 Mar 2012 at 12:40

GoogleCodeExporter commented 9 years ago
This may be a mistake on the caller's side: current documentation for DateTime 
(0.76) specifies the interface as

DateTime->from_object( object => $object, ... )

(see https://metacpan.org/module/DateTime#Constructors)

Although I agree the error message is misleading.

HTH,
Edward

Original comment by edward.b...@gmail.com on 24 Aug 2012 at 8:44