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
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 =>
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
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
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
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
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
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.
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