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