Date::Holidays::SK - determine Slovak Republic bank holidays
use Date::Holidays::SK qw(
my ($year, $month, $day) = (localtime)[ 5, 4, 3 ];
$year += 1900;
$month += 1;
print "Woohoo" if is_sk_holiday( $year, $month, $day );
print "Woohoo" if is_sk_holiday_today;
$hashref = sk_holidays(2014); # full listing for 2014
$hashref = sk_holidays(2014, 4); # just for April, 2014
$hashref = sk_holidays(2014, 4, 8); # just for April 8, 2014
This module provides a simple way to get information on Slovak Republic bank holidays.
This module is a clone of Date::Holidays::CZ.
Date::Holidays::SK depends on the following two modules:
With two exceptions, the dates of all Slovak Republic bank holidays are fixed. The exception is Easter Friday and Monday.
Takes three named arguments:
year, four-digit number
month, 1-12, two-digit number
day, 1-31, two-digit number
Takes one to three arguments: year (four-digit number), month (1-12, two-digit number), and day (1-31, two-digit number). Returns a reference to a hash in which the keys are 'MMDD' (month and day, concatenated) and the values are the names of all the various bank holidays that fall within the year, month, or day indicated by the arguments.
Nathan Cutler, <presnypreklad at gmail.com>
<presnypreklad at gmail.com>
adjusted for Slovakia by
Jozef Kutej <jkutej at cpan.org>
<jkutej at cpan.org>
This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). You may obtain a copy of the full license at:
To install Date::Holidays::SK, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.