On Mon, Jan 13, 2003 at 01:55:17PM -0600, Dave Rolsky wrote: > On Mon, 13 Jan 2003, Martijn van Beers wrote: > > > The format of the time strings and the recurrence rules are defined > > in the iCalendar rfc (2445). This was used because the primary use > > of Date::Set was going to be Net::ICal. (not that I'm aware of > > any other syntaxes to specify recurrences in) > > Ick, recurrence syntax? We need data structures: > > Making your interface require on some complicated string formatting makes > the API _really_ incomprehensible.
Whether you have a complicated string, or a complicated data structure doesn't really make that much difference :) Anyway, this shouldn't be exposed by any interface at all, you just want to deal with the hash (probably blessed as DateTime::Zone or something) I showed at the start of my previous mail. These should be automatically generated for the user. I already have this working locally in Net::ICal::Timezone, which reads iCalendar timezone data. It should be possible to get the same information from the binary representation of the Olson database that comes with libc (/usr/share/zoneinfo). > I _really_ want to rework the Date::Set API as part of turning it into > DateTime::Set. But I'm not quite ready to get to that yet. I guess I'm going to have to create DateTime::Set::ICal then :) or just keep using the old Date::Set. Martijn P.S. just send replies to the list, not to me directly. thanks.