[EMAIL PROTECTED] wrote:
On Fri, 19 Dec 2003, Marco Marongiu wrote:
Date::Iterator - Iterate over a range of dates
I like it!
Thanks Josh!
I recently needed to handle the same thing, but also needed to be able to handle hourly steps. Would it be possible to add support for something like the following: my $i1 = Date::Iterator->new(from => [2003,12,1,10], to => [2003,12,10,23] ); and have it return arrays (or refs) with [yyyy,mm,dd,hh] back?
This could also be expanded in both directions, to handle: my $i1 = Date::Iterator->new(from => [2003,12], to => [2004,3] ); and: my $i1 = Date::Iterator->new(from => [2003,12,1,10,6], to => [2003,12,2,3,55] ); The latter to be a range of minutes from 2003-12-01 10:06 to 2003-12-02 3:55.
I realize that probably wasn't your origonal intention at all, but that would be really handy. BTW - I'd be happy to contribute to Date::Iterator to add support for the above type of scenarios if you'd like.
Yes, please, do it :-)
You are right, your modification goes far beyond the scope of my work, but I'd be really happy to see that someone takes my code as a base to go one step further.
Could we discuss in private on the release plan?
Thank you!
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