A converter for chefmoz RDF data to ICS recurring events

libby.miller@bristol.ac.uk 2003-05-13

usage: ./chefmoz2icsl.pl samplechefhours.txt > results.ics

see http://esw.w3.org/topic/OpeningHoursUseCase and http://lists.w3.org/Archives/Public/www-rdf-calendar/2003Mar/0016.html

We need something like this:

DTSTART:20030908T190000
DTEND:20030908T233000
RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO

but this is wrong - need a timezone thing - how can we get this? a mapping from United Kingdom?

The sample text from chefmoz looks like this:

<ParsedHours>10-23|10-23|10-23|10-23|10-23|10-23|10-23</ParsedHours>
can start with | or nothing
can have comma separated pairs within a day
half hours are rep by .5
 | separates a day
 24 hour clock
 some don't have any ParsedHours
 ranges are separated by -
 midnight is 0
 some oddities e.g
|12-15,18-23.9833333333333|12-15,18-23.9833333333333|12-15,18-23.9833333333333|12-15,18-23.9833333333333|12-15,18-23.9833333333333|12-15,18-23.9833333333333

use only 0000 for midnight. I've used 2359 to avoid confusion
with the next day