I assume that this only works for things created by ICal... 

Or can I make a set using DT::E::Recurrence and expect to be able to
serialize it out using DT::F::ICal?

Cool stuff though.

                -ben

On Fri, Jul 04, 2003 at 02:00:34AM +0000, [EMAIL PROTECTED] wrote:
> Ok, I've got DateTime::Set::ICal implemented under
> DT:E:Recurrence. It's an 'internal use' class for
> recurrences that can be represented using ICal 
> statements.
> 
> DT::Format::ICal can now format pretty complex sets
> as ICal statements:
> 
> example from t/04recurrence.t:
> ..
> my $exclude = $union2->union(
>     $ical->parse_datetime( '19980303T030303' )
>    )->complement(
>     $ical->parse_datetime( '19980404T040404' )
>    );
> @str = $ical->format_recurrence( $exclude );
> 
> # output:
> 
> RRULE:FREQ=YEARLY;BYMONTH=1;BYDAY=SU,MO,TU,WE,TH,FR,SA 
> RRULE:FREQ=YEARLY;BYMONTH=2;BYDAY=SU,MO,TU,WE,TH,FR,SA 
> RDATE:19980303T030303
> EXDATE:19980404T040404
> 
> format_recurrence() dies if it can't find a proper
> ICal representation for a set.
> 
> - Flavio S. Glock
> 

Reply via email to