Dave Rolsky wrote:
Really? But with DateTime::Event::Recurrence you very easily generate these types of sets. For example, for a set of dates one per day:
use DateTime; use DateTime::Event::Recurrence;
my $start = DateTime->new( year => 2003, month => 10, day => 3 ); my $end = DateTime->new( year => 2003, month => 11, day => 10 );
my $daily = DateTime::Event::Recurrence->daily( start => $start, end => $end );
while ( my $dt = $daily->next ) { ... }
How hard is that?
my $i = Date::Iterator->new( from => [2003,10,3], to => [2003,11,10] ) ; while (my $day = $i->next) { ... }
Is this harder?
What does your module offer that makes it worth _not_ getting all the other features DateTime.pm offers, like useful time zone support, lots of formatting & parsing options, the ability to do set math on sets (union, difference, intersection, etc.)?
Maybe the fact that I don't need all the other features?
----------^^^^^^^^^^^^^^^^However, I think the docs for DT::Event::Recurrence need some work, because I don't the fact that you can do easy stuff with it is obvious.
Is there a "think" missing?
Anyway, I agree with you: from the docs you have the feeling that all the framework is a lot complicated...
Ciao --bronto
-- Marco Marongiu Email: [EMAIL PROTECTED] System Administrator Phone: +39 070 460 1684 Tiscali S.p.A. Fax: +39 070 460 9684 International IT Services