On Fri, 19 Dec 2003, Marco Marongiu wrote:
> My module does just one, very specific thing. DateTime::Set is flexible,
> powerful... but when you just need to iterate over a range of days with
> a constant step, it looks overkill to me.
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?
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.)?
The API is maybe _slightly_ simpler, but not by very much at all.
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.
-dave
/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/