Re: [PEPr] Comment on Date and Time::Date_Holidays
| From: | Stephan Schmidt | Date: | Sun, 20 Jun 2004 13:58:06 +0000 |
| Subject: | Re: [PEPr] Comment on Date and Time::Date_Holidays | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-30953@lists.php.net to get a copy of this message | ||
Hi,
don't store holidays in the class, but provide a method to import them from a datasource (.ini file, database, whatever). I think, the holidays should be stored and calculated inside drivers, as the calc rules can get quite complex. It's not always addition/subtraction from the easter date. That's why I recommended a driver-based approach to Carsten (in private)...Users had to learn complex rules like "the second thursday in November, except November 1st is a thursday"...
Internationalization management could be delegated to external classes > like PEAR::Translation2 [1] & [2], and Localization to PEAR::I18Nv2I'd see this more like the validation errors in Quickform, which are stored internally, too. IMHO it would add quite some overhead if users had to install Translation2... Maybe we could offer some optional I18N support for languages that are not built-in Stephan