Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I would like to store a recurrence set in a database, so that I can recreate it later. I attempted this:

# every Monday, from 10:00 to 15:00 my $start = DateTime::Event::ICal->recur( freq => 'weekly', byday => ['mo'], byhour => 10 ); my $end = DateTime::Event::ICal->recur( freq => 'weekly', byday => ['mo'], byhour => 15 ); my $set = DateTime::SpanSet->from_sets( start_set => $start, end_set => $end ); print "Format for storage ", DateTime::Format::ICal->format_recurrence( $set );

But I get an error:

format_recurrence() - Format not implemented for this unbounded set

I don't want to make it a bounded set (with start/end dates). And I don't want to just dump the object, because I need to visualize it later thru the web interface I'm writing.

Actually, I'm not even sure if an ICal style recurrence set is necessary.

At a dead end here.

-miguel