Re: Re: [PEPr] Comment on Date and Time::Date_Holidays
| From: | Stephan Schmidt | Date: | Tue, 22 Jun 2004 08:04:30 +0000 |
| Subject: | Re: Re: [PEPr] Comment on Date and Time::Date_Holidays | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-31079@lists.php.net to get a copy of this message | ||
Hi,
... but this whole package is just a duplication of what you could do by taking a decent iCalendar library and putting it together with a list of data files, and maybe putting some utility methods on top of it. Solves the driver problem, makes it much easier to integrate into existing systems, makes use of a lot of existing data, and you don't reimplement tricky recurrence rules/text descriptions for them.I still wouldn't require it for the first version for the following reasons: 1. I think the package is useful as it is now and I think the barrier for bringing new packages to PEAR is too high in a lot of cases. 2. If a user needs a new driver for his country or any other special cases, he'll have to learn the ICS format to build a new data file instead of building a new PHP file. 3. Implementing full support for ICS files will be a lot of work. AFAIK File_IMC only parses a file and returns an array with its content. It currently does not do anything with the RRULE property of any event. This has to be implemented in the Date_Holidays Driver. But as this is Carsten's proposal, we'll have to wait whether he is willing to implement ICS support, before or after the package is approved or not at all... Just my 2cts. Stephan