Re: recurring system

2007-03-28 Thread Matthew
Once more.. I didn't see anything in the docs to prevent this 'cartesian product' effect. If I do this: my $dt_r = DateTime::Event::Recurrence->daily( days => [1, 3], hours => [10, 16], minutes => [0, 30]); I get the following events on Monday and Wednesday: 10

Re: recurring system

2007-03-27 Thread Flavio S. Glock
There are several ways to do this. For example: use DateTime::Event::Recurrence; use strict; my $daily_at_10_30 = DateTime::Event::Recurrence->daily( hours => 10, minutes => 30); my $iter = $daily_at_10_30->iterator( after => DateTime->new( year => 2007, month => 1, day => 15, hour =>

RE: recurring system

2007-03-27 Thread Garrett, Philip \(MAN-Corporate\)
Matthew wrote: > The documentation on D::E::Recurrence isn't helping me much. What am I > doing wrong here? > > my $dt_start = DateTime->new( year => 2007, >month => 1, day => 15, hour => 11); > > my $daily_at_10_30 = DateTime::Event::Recurrence->daily(hours => 10, >minutes => 30); > > f

Re: recurring system

2007-03-27 Thread Matthew
The documentation on D::E::Recurrence isn't helping me much. What am I doing wrong here? my $dt_start = DateTime->new( year => 2007, month => 1, day => 15, hour => 11); my $daily_at_10_30 = DateTime::Event::Recurrence->daily(hours => 10, minutes => 30); for(my $i = 0; $i < 5; $i++) { pr

Re: recurring system

2007-01-16 Thread Paul Hoffman
On Tue, Jan 16, 2007 at 14:18:27 -0600, Matthew <[EMAIL PROTECTED]> wrote: > Does anyone have, already made, some type of "recurring events" > module? We have our in-house function that works with singular weekly > and singular monthly events but we'd like to branch into daily, > bi-daily, bi

Re: recurring system

2007-01-16 Thread Zefram
Matthew wrote: > To me, this seems amazingly inefficient. If my weekly recurring >original event start date was Aug 1, 2006, the perl would have to loop >26 times to find the next event (in this case, Jan 23). > >Can anyone offer a better solution to this? Yes: determine the day-of-week of the

Re: recurring system

2007-01-16 Thread Matthew
Well that was easy. Thanks Rick. I should have looked on cpan before emailing. -Matthew Rick Measham wrote: Matthew wrote: Hey guys, Does anyone have, already made, some type of "recurring events" module? We have our in-house function that works with singular weekly and singular monthly e

Re: recurring system

2007-01-16 Thread Rick Measham
Matthew wrote: Hey guys, Does anyone have, already made, some type of "recurring events" module? We have our in-house function that works with singular weekly and singular monthly events but we'd like to branch into daily, bi-daily, bi-weekly, bi-monthly, every X weeks, every X days, etc.

recurring system

2007-01-16 Thread Matthew
Hey guys, Does anyone have, already made, some type of "recurring events" module? We have our in-house function that works with singular weekly and singular monthly events but we'd like to branch into daily, bi-daily, bi-weekly, bi-monthly, every X weeks, every X days, etc. Our current logi