Date::CutOff::JP - Get the day cutoff and payday for in Japanese timezone
use Date::CutOff::JP; my $dco = Date::CutOff::JP->new({ cutoff => 0, late => 1, payday => 0 }); my %calculated = $dco->calc_date('2019-01-01'); print $calculated{'cutoff'}; # '2019-01-31' print $calculated{'payday'}; # '2019-02-28'
Date::CutOff::JP provides how to calculate the day cutoff and the payday from Japanese calender.
you can calculate the weekday for cutoff and paying without holiday in Japan.
get/set the day cutoff in every months. 0 means the end of the month.
get/set the payday in every months. 0 means the end of the month.
get/set the lateness. 0 means the cutoff and payday is at same month.
The all you can set is Int of [ 0 .. 2 ] 3 or more returns error.
returns hash value with keys below:
The latest cutoff after $date.
The latest payday after $date.
Is or not that the cutoff is pending until next month.
Because of dependency: Date::Japanese::Holiday
11th of Aug is a holiday as '山の日' since 2016 but this module doesn't support it yet.
1st of May is special holiday especially 2019 but this module doesn't support it yet.
Date::Simple, Date::Japanese::Holiday, 日本の祝日YAML
Copyright (C) worthmine.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
worthmine <worthmine@cpan.org>
To install Date::Cutoff::JP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Date::Cutoff::JP
CPAN shell
perl -MCPAN -e shell install Date::Cutoff::JP
For more information on module installation, please visit the detailed CPAN module installation guide.