Date-Holidays
view release on metacpan or search on metacpan
lib/Date/Holidays/Adapter/Local.pm view on Meta::CPAN
actually corresponds with the abstract is outlined in L<Date::Holidays::Abstract>.
Not all methods/subroutines may be implemented in the adaptee classes, the
adapters attempt to make the adaptee APIs adaptable where possible. This is
afterall the whole idea of the Adapter Pattern, but apart from making the
single Date::Holidays::* modules uniform towards the clients and
L<Date::Holidays> it is attempted to make the multitude of modules uniform in
the extent possible.
=head2 new
The constructor, takes a single named argument, B<countrycode>
=head2 is_holiday
The B<holidays> method, takes 3 named arguments, B<year>, B<month> and B<day>
returns an indication of whether the day is a holiday in the calendar of the
country referenced by B<countrycode> in the call to the constructor B<new>.
=head2 holidays
The B<holidays> method, takes a single named argument, B<year>
returns a reference to a hash holding the calendar of the country referenced by
B<countrycode> in the call to the constructor B<new>.
The calendar will spand for a year and the keys consist of B<month> and B<day>
concatenated.
=head1 DEFINING A LOCAL CALENDAR
Please refer to the DEVELOPER section in L<Date::Holidays> about contributing to
the Date::Holidays::* namespace or attempting for adaptability with
L<Date::Holidays>.
=head1 DIAGNOSTICS
Please refer to DIAGNOSTICS in L<Date::Holidays>
=head1 DEPENDENCIES
=over
=item * L<Carp>
=item * L<Module::Load>
=item * L<JSON>
=item * L<File::Slurp>
=back
Please see the F<cpanfile> included in the distribution for a complete listing.
=head1 INCOMPATIBILITIES
Please refer to INCOMPATIBILITIES in L<Date::Holidays>
=head1 BUGS AND LIMITATIONS
Please refer to BUGS AND LIMITATIONS in L<Date::Holidays>
=head1 BUG REPORTING
Please refer to BUG REPORTING in L<Date::Holidays>
=head1 AUTHOR
Jonas Brømsø, (jonasbn) - C<< <jonasbn@cpan.org> >>
=head1 LICENSE AND COPYRIGHT
L<Date::Holidays> and related modules are (C) by Jonas Brømsø, (jonasbn)
2004-2024
L<Date::Holidays> and related modules are released under the Artistic License 2.0
=cut
( run in 0.613 second using v1.01-cache-2.11-cpan-5c0b1e786e0 )