Subject: | Not showing additional holiday in year 2015 |
Date: | Tue, 4 Feb 2014 18:20:56 +1100 |
To: | bug-Date-Holidays-AU [...] rt.cpan.org |
From: | Sam Pinar <sampinar [...] gmail.com> |
Hi,
First off, great plugin, thank you. If you can give me your paypal details
I would like to buy you a beer.
I have found two issues with the plugin:
1) The additional holiday in 2015 isn't seen as a public holiday
(28/12/2015)
2) 27/04/2015 is set a public holiday, but looking at NSW government
websites that is not the case (Anzac day comes to a Saturday but not sure
if the government declares a public holiday if Anzac day lies on a weekend;
like christmas/boxing day/Australia day) :
http://www.industrialrelations.nsw.gov.au/oirwww/NSW_public_holidays/NSW_Public_Holidays_2013-2015.page
http://australia.gov.au/topics/australian-facts-and-figures/public-holidays#NSW
Extract of public holidays using plugin:
use DateTime;
use Date::Holidays::AU qw / is_holiday holidays /;
use 5.010;
%params = ( year => '2015', state => 'NSW');
$holidays = holidays(%params);
while (($key, $value) = each %$holidays) {
say "$key => $value"
}
output of above program:
0406 => Easter Monday
0403 => Good Friday
0126 => Australia Day Holiday
0101 => New Years Day
1226 => Boxing Day
1005 => Labour Day
1227 => Boxing Day Holiday
0425 => Anzac Day Holiday
0404 => Easter Saturday
1225 => Christmas Day
*0427 => Anzac Day Holiday*
0608 => Queens Birthday
0405 => Easter Sunday
I am running script on Debian Wheezy 7.2
perl version is: 5.14.2
plugin version is: 0.10
I haven't tested year 2016, will test and let you know if any issues.
--
Cheers,
Sam Pinar
e sampinar@gmail.com