Group
Extension

Matches 2

Date-Holidays-GB ( M/MJ/MJEMMESON/Date-Holidays-GB-0.024.tar.gz, MJEMMESON, 2024; MetaCPAN )
Date-Holidays-GB/share/generate_date_holidays_gb.pl ( view source; MetaCPAN )
e splitpath updir );
use JSON qw(decode_json);
use List::MoreUtils qw( uniq );
use LWP::Simple qw( get );
use Time::Local ();

my $URL = 'https://www.gov.uk/bank-holidays.json';

my %CODE = (
    'eng
get_dates( download_json() ) );

exit;

sub file {
    return catfile( ( splitpath( realpath __FILE__ ) )[ 0, 1 ],
        updir, qw(lib Date Holidays GB.pm) );
}

sub download_json {

    my $content
s = get $URL or die "Can't download $URL";

    return decode_json($contents);
}

sub get_dates {
    my $data = shift;

    my %holiday;

    foreach my $region ( keys %{$data} ) {

        foreach m
Date-Holidays-GB ( M/MJ/MJEMMESON/Date-Holidays-GB-0.024.tar.gz, MJEMMESON, 2024; MetaCPAN )
Date-Holidays-GB/lib/Date/Holidays/GB.pod ( view source; MetaCPAN )
included with the
distribution (C<share/generate_date_holidays_gb.pl>). This downloads the
latest JSON files from L<https://www.gov.uk/>, and could be used to
update/alter the package if necessary.

=

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.