Hi All,
I am having problems generating a set using the DateTime:;Easter module.
Here is the code.
#!/usr/bin/perl
use strict;
use warnings;
use DateTime;
use DateTime::Set;
use DateTime::Event::Easter;
my $easter_sunday = DateTime::Event::Easter->new();
my $dt1 = DateTime->new( year => 2000,
month => 1,
day => 1,
);
my $dt2 = DateTime->new( year => 2050,
month => 12,
day => 1,
);
my $set1 = $easter_sunday->as_set(from=>$dt1, to=>$dt2);
error is:
Can't locate object method "new" via package "DateTime::Set"
(perhaps you forgot to load "DateTime::Set"?) at
F:/perl/site/lib/DateTime/Event/Easter.pm line 184.
It seems that there is no new method in the DateTime::Set
module.
Please advise.
Thanks
Ron Hill