Home » Date and Time » Date_Holidays
Driver based class to calculate holidays.
Download latest release 0.21.8 (there might be newer Composer installable version)
License: PHP License
Description
Date_Holidays helps you calculate the dates and titles of holidays and other special celebrations. The calculation is driver-based so it is easy to add new drivers that calculate a country's holidays. The methods of the class can be used to get a holiday's date and title in various languages.
Documentation
Maintainers
- Carsten Lucke (luckec) — lead, inactive
- Ken Guest (kguest) — lead, active
- Stephan Schmidt (schst) — developer, inactive
- Mark Wiesemann (wiesemann) — contributor, inactive
Dependencies
Required
- PHP (>= 5.0.0)
- PEAR Installer (>= 1.6.0)
- PEAR (>= 1.3.1)
- Date
- XML_Serializer
Optional
Releases
- 0.21.8 (alpha, 2013-01-22)
Release notes
License: PHP License
* New drivers.
- 0.21.7 (alpha, 2012-11-25)
Release notes
License: PHP License
* Request #19716: Add Dutch translation for Christian driver
- 0.21.6 (alpha, 2012-02-27)
Release notes
License: PHP License
* Fix Bug #19151: Easter Monday is always on the next day
- 0.21.5 (alpha, 2011-04-28)
Release notes
License: PHP License
* Fix Bug #16423: Path to php binary should not be hardcoded
* Fix Bug #16595: Inkompatibility to current version of PHP [kguest]
* Fix Bug #16731: _addDays is broken with Date 1.5.0a1 [kguest] - 0.21.4 (alpha, 2009-08-10)
- 0.21.2 (alpha, 2009-03-24)
Release notes
License: PHP License
* Fix Bug #16053: Dependency regression added with 0.21.1
* Dependency on PEAR updated to version 1.6.0
* Dependency on PHP updated to 4.4.9 or newer - 0.21.1 (alpha, 2009-03-15)
Release notes
License: PHP License
* Fix Bug #13865: One-hour-shift in Christian driver
* Fix Bug #15047: Don't use LC_ALL
* Fix Bug #15475: function getNextDay() does not seem to exist
* Fix Bug #16021: PHP 4 regression
* Add Date_Holidays_Italy as a group item. - 0.21.0 (alpha, 2009-01-26)
Release notes
License: PHP License
* Fix Bug #10221: Easier language selection [kguest]
* Fix Bug #14638: Improper use of function_exists() [kguest]
* Fix Bug #15046: Avoid arbitrary file inclusion. [kguest]
* Fix Bug #15079: fix use of easter_days function [kguest]
* Fix Bug #15360: Double error in Christian.php [doconnor]
* Fix Bug #15676: Date_Holidays_EnglandWales [kguest] - 0.20.1 (alpha, 2008-08-23)
Release notes
License: PHP License
* Include Japan subpackage.
* Include EasternChristian driver for Romania and Ukraine subpackages.
* Removed testsuite for Brazil driver - belongs in Brazil subpackage. - 0.20.0 (alpha, 2008-08-05)
Release notes
License: PHP License
* Request #13750: utilise easter_days function where and as appropriate
- 0.19.1 (alpha, 2008-05-08)
- 0.19.0 (alpha, 2008-05-06)
Release notes
License: PHP License
* split into subpackages!
- 0.18.0 (alpha, 2008-04-10)
Release notes
License: PHP License
* Fix Bug #12835: Boxing Day not celebrated in Ireland - it's St Stephen's Day [kguest]
- 0.17.4 (alpha, 2008-01-14)
- 0.17.3 (alpha, 2008-01-14)
- 0.17.2 (alpha, 2008-01-05)
- 0.17.1 (alpha, 2007-06-10)
Release notes
License: PHP License
- Fixed bug #10220: Don't set locale automatically
- Added Irish holidays/filters, contributed by Ken Guest
- Added Austrian holidays, contributed by Klemens Ullmann - 0.17.0 (alpha, 2006-12-16)
Release notes
License: PHP License
- Fixed bug #9319: 4th Advents Day not calculated right (quippo)
- Added Danish holidays, contributed by Henrik Hansen
- Added Slowenian holidays, contributed by Jakob Munih
- Added Discordian holidays, contributed by Stephan 'Da:Sourcerer' Hohmann - 0.16.1 (alpha, 2006-08-13)
Release notes
License: PHP License
- bugfix for Date_Holidays::factoryISO3166(), which did return null instead of a PEAR_Error on failure (luckec)
- 0.16.0 (alpha, 2006-04-03)
Release notes
License: PHP License
- added method Date_Holidays::factoryISO3166() that allows to create drivers by a given ISO3166 code, this was request #6944 (luckec)
- 0.15.2 (alpha, 2006-04-02)
- 0.15.1 (alpha, 2006-01-15)
Release notes
License: PHP License
- added Midsummer Eve for Date_Holidays_Driver_Sweden (luckec)
- 0.15.0 (alpha, 2006-01-08)
Release notes
License: PHP License
- Implemented request #5764 : Methods to get installed drivers and filters (schst)
- Added driver for calculation of Swedish holidays, feature-request: #6350 (luckec)
- Added unit-tests to package, added dynamic replacement of PEAR data-dir for language-files (luckec) - 0.14.0 (alpha, 2005-10-22)
Release notes
License: PHP License
- Switched from using INI files for translation to XML files
- Added script to convert INI files to XML files
- Added script to compile XML based language files
- Holidays can now have various properties (see "languagefile-with-properties.xml" in examples-directory)
- removed "againstNoiseDay" !BC break! from Germany driver, cannot be calculated automatically
- new driver-methods:
= addCompiledTranslationFile(), allows adding compiled language-data files for performance improvements
= getHolidaysForDatespan(), returns holidays within a given time span
- several bugfixes
- Added filters for german federal states (contributed by Mark Wiesemann) - 0.13.0 (alpha, 2005-02-14)
Release notes
License: PHP License
- added Filters (Blacklist, Whitelist, Composite, Germany_Official)
- improved Date_Holidays_Driver_Composite (allows executing setYear() now)
- added new driver PHPdotNet
- several cosmetic changes - 0.12.0 (alpha, 2004-12-29)
Release notes
License: PHP License
- added Italian languagefile for Christian holidays (thx 2 quipo)
- added performance-fix for getHolidayForDate() (thx 2 quipo)
- added German translation for USA-holidays - 0.11.0 (alpha, 2004-11-02)
Release notes
License: PHP License
Added driver and English languagefile for USA built by Kevin English.
- 0.10.0 (alpha, 2004-08-30)
Release notes
License: PHP License
added optional $restrict-param for Date_Holidays_Driver::isHoliday()
- 0.9.0 (alpha, 2004-08-20)
Release notes
License: PHP License
initial pear release
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #4909 | Closed | Req | 2005-07-25 | Add a filter for holidays in North Rhine-Westphalia | |
| #4910 | Closed | Req | 2005-07-25 | new Driver function getHolidaysForDateSpan | |
| #5764 | Closed | Req | 2005-10-24 | Method/property for driver listing | |
| #6350 | Closed | Req | 2005-12-27 | new holiday listing for sweden | |
| #6729 | Closed | Bug | 0.15.1 | 2006-02-08 | Veteran's Day wrong |
| #6944 | Closed | Req | 0.15.1 | 2006-02-26 | ISO 3166 country and regional identification |
| #7193 | Closed | Bug | 0.15.1 | 2006-03-24 | Missing parameter filter to isHoliday in Composite driver |
| #7269 | Closed | Bug | 0.15.1 | 2006-03-31 | End-user documentation lacks mention of Swedish driver |
| #7530 | Closed | Req | 0.16.0 | 2006-05-01 | Added Danish holidays |
| #7541 | Closed | Req | CVS | 2006-05-02 | Add discordian holidays |
| #9319 | Closed | Bug | 0.16.1 | 2006-11-13 | 4th Advents Day not calculated right |
| #10220 | Closed | Bug | 0.17.0 | 2007-02-28 | Don't set locale automatically |
| #10221 | Closed | Bug | 0.17.0 | 2007-02-28 | Easier language selection |
| #10222 | Closed | Req | 0.17.0 | 2007-02-28 | Method to retrieve translation charset missing |
| #11097 | Closed | Req | 0.17.0 | 2007-05-22 | England and Wales driver |
| #11520 | Closed | Bug | CVS | 2007-07-04 | AllTests.php need to be reworked for integration with PEAR_TestSuite |
| #11744 | Closed | Bug | CVS | 2007-08-02 | tests need to work when run from CVS. |
| #11746 | Closed | Bug | CVS | 2007-08-02 | Easter calculation offset by 1 day. |
| #12523 | Closed | Bug | 0.17.1 | 2007-11-25 | Referencing problem changing variables |
| #12807 | Closed | Bug | 0.17.1 | 2008-01-02 | Incorrect holiday computation |
| #12835 | Closed | Bug | 0.17.2 | 2008-01-05 | Boxing Day not celebrated in Ireland - it's St Stephen's Day |
| #12937 | Closed | Req | 0.17.4 | 2008-01-20 | Driver for holidays in the Ukraine requested |
| #12938 | Closed | Req | 0.17.4 | 2008-01-20 | Driver for holidays in Romania requested |
| #12978 | Closed | Req | CVS | 2008-01-25 | Driver for Iceland requested |
| #12979 | Closed | Bug | CVS | 2008-01-25 | some incorrect Icelandic names of holidays |
| #13012 | Closed | Bug | CVS | 2008-01-30 | move helper methods from Ireland driver to base class |
| #13395 | Closed | Bug | 2008-03-15 | isHoliday resets interal year storage | |
| #13429 | Closed | Bug | CVS | 2008-03-18 | Small correction to Danish holidays |
| #13740 | Closed | Req | 0.18.0 | 2008-04-22 | Date_Holidays_Driver_Japanese |
| #13750 | Closed | Req | 0.18.0 | 2008-04-23 | Make use of easter_date() |
| #13783 | Open | Req | CVS | 2008-04-27 | Add factory pattern for filters |
| #13865 | Closed | Bug | 0.19.1 | 2008-05-09 | One-hour-shift in Christian driver |
| #14479 | Closed | Bug | 0.20.0 | 2008-08-08 | .phpt test file for bug13395 fails |
| #14545 | Closed | Req | 0.20.0 | 2008-08-22 | Italian holidays |
| #15046 | Closed | Bug | CVS | 2008-11-15 | Avoid arbitrary file inclusion. |
| #15047 | Closed | Bug | CVS | 2008-11-15 | Don't use LC_ALL |
| #15079 | Closed | Bug | CVS | 2008-11-18 | fix use of easter_days function |
| #15360 | Closed | Bug | 0.20.1 | 2008-12-20 | Double error in Christian.php |
| #15475 | Closed | Bug | 0.20.1 | 2008-12-31 | function getNextDay() does not seem to exist |
| #15676 | Closed | Bug | 0.20.1 | 2009-01-19 | Date_Holidays_EnglandWalse |
| #16021 | Closed | Bug | 0.21.0 | 2009-03-11 | PHP 4 regression |
| #16053 | Closed | Bug | 0.21.1 | 2009-03-23 | Dependency regression added with 0.21.1 |
| #16423 | Closed | Bug | 0.21.2 | 2009-07-10 | Path to php binary should not be hardcoded |
| #16595 | Closed | Bug | 0.21.4 | 2009-09-11 | Inkompatibility to current version of PHP |
| #16731 | Closed | Bug | 0.21.4 | 2009-10-23 | _addDays is broken with Date 1.5.0a1 |
| #17202 | Bogus | Bug | SVN | 2010-03-08 | handle tests being run straight from SVN; ie no post-install variable expansion |
| #17246 | Closed | Req | 0.21.4 | 2010-03-19 | new driver proposal |
| #17307 | Closed | Req | 0.21.4 | 2010-04-12 | Drivers for Australia |
| #17456 | Closed | Req | 2010-06-01 | Driver for Spain | |
| #17633 | Closed | Req | SVN | 2010-07-27 | Speeding up Date_Holidays_Driver->getHolidayForDate |
| #18216 | Closed | Req | SVN | 2011-01-24 | Public holidays for Croatia |
| #18333 | Closed | Req | 0.21.4 | 2011-03-03 | Holidays for Venezuela |
| #18449 | Bogus | Bug | 0.21.4 | 2011-04-15 | Date_Holidays::isError() strange check |
| #18572 | No Feedback | Req | SVN | 2011-05-31 | "Bangladesh" driver |
| #18959 | Closed | Bug | SVN | 2011-11-06 | Failed tests |
| #18997 | Closed | Bug | 2011-11-14 | remove error_reporting (for PEAR QA team) | |
| #19151 | Closed | Bug | 0.21.5 | 2011-12-20 | Easter Monday is always on the next day |
| #19716 | Closed | Req | 0.21.6 | 2012-11-21 | Add Dutch translation for Christian driver |
| #19717 | Bogus | Req | 0.21.6 | 2012-11-21 | Add Dutch translation for Christian driver |
| #19722 | Assigned | Req | 0.21.7 | 2012-11-26 | Localize driver names |
| #19814 | Closed | Bug | 0.21.8 | 2013-02-09 | Compile language file nl_NL.ser missing for Christian Driver |
| #19816 | Closed | Bug | 0.21.8 | 2013-02-10 | Localization fails if translations contain unused internalnames |
| #20178 | Closed | Bug | 0.21.8 | 2014-01-16 | garbled portugeuse character output |
| #20258 | Open | Req | SVN | 2014-04-28 | Please change license (move away from PHP license) |
| #20450 | Closed | Req | 0.21.8 | 2014-11-27 | add Date_Holidays_France |
| #23735 | Open | Bug | SVN | 2018-01-23 | Strict Standards errors shown |