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