Date::Holidays::KR - Determine Korean public holidays
use Date::Holidays::KR; use DateTime; my $dt = DateTime->now( time_zone => 'local' ); if (my $holiday_name = is_holiday($dt->year, $dt->month, $dt->day)) { print "오늘은 $holiday_name 입니다"; }
Date::Holidays::KR determines public holidays for Korean.
takes year, month, date as parameters, and returns the name of the holiday if it's a holiday, or undef otherwise.
takes a year, and returns a hashref of all the holidays for the year
Currently supported data range is from solar 1391-02-05 ( lunisolar 1391-01-01 ) to 2050-12-31 ( lunisolar 2050-11-18 )
Jeen Lee <aiatejin {at} gmail.com>, Keedi Kim < keedi.kim {at} gmail.com>
Date::Korean, Date::Holidays::CN
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Date::Holidays::KR, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Date::Holidays::KR
CPAN shell
perl -MCPAN -e shell install Date::Holidays::KR
For more information on module installation, please visit the detailed CPAN module installation guide.