Date::Holidays::KZ - Determine Kazakhstan official holidays and business days.
version 0.2018.0
use Date::Holidays::KZ qw( is_holiday holidays is_business_day ); binmode STDOUT, ':encoding(UTF-8)'; my ( $year, $month, $day ) = ( localtime )[ 5, 4, 3 ]; $year += 1900; $month += 1; if ( my $holidayname = is_holiday( $year, $month, $day ) ) { print "Today is a holiday: $holidayname\n"; } my $ref = holidays( $year ); while ( my ( $md, $name ) = each %$ref ) { print "On $md there is a holiday named $name\n"; } if ( is_business_day( 2012, 03, 11 ) ) { print "2012-03-11 is business day on weekend\n"; } if ( is_short_business_day( 2015, 04, 30 ) ) { print "2015-04-30 is short business day\n"; }
Determine whether this date is a KZ holiday. Returns holiday name or undef.
Alias for is_holiday().
Returns hash ref of all KZ holidays in the year.
Returns true if date is a business day in KZ taking holidays and weekends into account.
Returns true if date is a shortened business day in KZ.
Date::Holidays::KZ
Vladimir Varlamov, <bes.internal@gmail.com>
<bes.internal@gmail.com>
Vladimir Varlamov <bes.internal@gmail.com>
This software is copyright (c) 2017 by Vladimir Varlamov.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Date::Holidays::KZ, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Date::Holidays::KZ
CPAN shell
perl -MCPAN -e shell install Date::Holidays::KZ
For more information on module installation, please visit the detailed CPAN module installation guide.