The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
use strict;
use warnings;
use Test::More;
BEGIN {
    eval q[use DateTime];
    plan skip_all => "DateTime required for testing date" if $@;
}
use HTML::DateSelector;

plan tests => 1;

my $this_year = DateTime->today->year;
my $html = HTML::DateSelector->year('start_on');
like $html, qr/$this_year/, 'time';