I was kind of involved in an off list discussion a while back todo with 
parsing of .ics files into DateTime objects. 

It's come up again in another project that I'm working on - basically I 
need to be able to parse and export as .ics

Is anybody else working on this? Is it worth me working on it? My basic 
thought for an API was (and this is off the top of my head)


  my $ics = new DateTime::ICS;

  $ics->parse( file => 'holidays.ics' );

  # if given a span then will only return
  # events in that span. Otherwise will return all
  foreach my $event ($ics->events($span)) {
                print $event->summary(); # handwave
  }

  
  $ics->add($new_event); # add some new event
                         # should there be a remove?

  $ics->export();        # dump it out as an ics file

Thoughts? Comments? Useful code?

Simon

-- 
sometimes i don't know whether to laugh, cry or reboot


Reply via email to