Acme-CPANModules-CalculatingDayOfWeek
view release on metacpan or search on metacpan
Date::Calc
Author: STBEY <https://metacpan.org/author/STBEY>
Date::Calc is a nice compromise when you want something that is more
lightweight and does not need to be as accurate as DateTime.
Time::Moment
Author: CHANSEN <https://metacpan.org/author/CHANSEN>
Time::Moment is also a nice alternative to DateTime. Although it's
not as featureful as DateTime, it is significantly more lightweight.
Compared to Date::Calc, Time::Moment's API is closer to DateTime's.
Being an XS module, it's also faster.
BENCHMARKED MODULES
Version numbers shown below are the versions used when running the
sample benchmark.
Date::DayOfWeek 1.22
Time::DayOfWeek 1.8
other Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps
required beyond that are considered a bug and can be reported to me.
COPYRIGHT AND LICENSE
This software is copyright (c) 2023 by perlancar <perlancar@cpan.org>.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
BUGS
Please report any bugs or feature requests on the bugtracker website
<https://rt.cpan.org/Public/Dist/Display.html?Name=Acme-CPANModules-Calc
ulatingDayOfWeek>
When submitting a bug or request, please include a test-file or a patch
to an existing test-file that illustrates the bug or desired feature.
lib/Acme/CPANModules/CalculatingDayOfWeek.pm view on Meta::CPAN
lightweight and does not need to be as accurate as <pm:DateTime>.
_
},
{
module => 'Time::Moment',
bench_code_template => 'Time::Moment->new(year => <year>, month => <month>, day => <day>)->day_of_week',
description => <<'_',
<pm:Time::Moment> is also a nice alternative to <pm:DateTime>. Although it's not
as featureful as DateTime, it is significantly more lightweight. Compared to
<pm:Date::Calc>, Time::Moment's API is closer to DateTime's. Being an XS module,
it's also faster.
_
},
],
bench_datasets => [
{name=>'date1', args => {day=>20, month=>11, year=>2019}},
],
lib/Acme/CPANModules/CalculatingDayOfWeek.pm view on Meta::CPAN
L<Date::Calc> is a nice compromise when you want something that is more
lightweight and does not need to be as accurate as L<DateTime>.
=item L<Time::Moment>
Author: L<CHANSEN|https://metacpan.org/author/CHANSEN>
L<Time::Moment> is also a nice alternative to L<DateTime>. Although it's not
as featureful as DateTime, it is significantly more lightweight. Compared to
L<Date::Calc>, Time::Moment's API is closer to DateTime's. Being an XS module,
it's also faster.
=back
=head1 BENCHMARKED MODULES
Version numbers shown below are the versions used when running the sample benchmark.
lib/Acme/CPANModules/CalculatingDayOfWeek.pm view on Meta::CPAN
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2023 by perlancar <perlancar@cpan.org>.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=head1 BUGS
Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Acme-CPANModules-CalculatingDayOfWeek>
When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.
=cut
( run in 0.231 second using v1.01-cache-2.11-cpan-4d50c553e7e )