> > I am trying to write a converter for crontab entries into another format > > (iCal). Unfortunately I need a limited recurrence set as the output > > module does not allow infinite sets. I thought that using the %parms or > > the %set_parms I would be able to limit the Set produced using from_cron > > and then pass that on as a finite DateTime::Set to the other module. > > > > Should the approach I am taking (to limit the resulting Set using a > > span) work?
Yes - if the set has up to 200 elements (that's an internal hard limit), DateTime::Format::ICal should do the right thing: print DateTime::Format::ICal->format_recurrence( $set ); DateTime::Format::ICal can only format infinite sets which were created either with DateTime::Event::ICal or with DateTime::Event::Recurrence. - Flavio S. Glock