Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Date-Holidays CPAN distribution.

Report information
The Basics
Id: 87515
Status: resolved
Priority: 0/
Queue: Date-Holidays

People
Owner: jonasbn [...] cpan.org
Requestors: mjemmeson [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: 0.21



Subject: Date::Holidays::GB package and "region" option (ISO-3166-2 codes)
Hi, I've recently added Date::Holidays::GB to CPAN, which has the correct ISO-3166-1 code for the UK, implements 'is_holiday()' and 'holidays()' (and I'll add 'is_gb_holiday()' and 'gb_holidays()' aliases soon). The UK public holiday dates are now being published on the government website, so the module is generated by a script scraping them, so should be easier to update. Also I noticed that regions within a country have an ISO-3166-2 code, so I've made subclasses such as "Date::Holidays::GB::EAW" (England & Wales), etc. I wonder if this could be added to the Date::Holidays docs and API, something like: Date::Holidays->new( countrycode => 'gb', regioncode => 'eaw' ); Also, Date::Holidays::AU is using the ISO-3166-2 codes in it's "state" parameter. Thanks, Michael
Moved the issue to Github, will keep this RT updated. https://github.com/jonasbn/Date-Holidays/issues/4 jonasbn
Added in release 0.21, on it's way to CPAN now. jonasbn