Acme-CPANModules-Parse-HumanDate
view release on metacpan or search on metacpan
"requires" : {
"File::Spec" : "0",
"IO::Handle" : "0",
"IPC::Open3" : "0",
"Test::More" : "0"
}
},
"x_lists" : {
"x_lists" : {
"Date::Parse" : "0",
"DateTime::Format::Flexible" : "0",
"DateTime::Format::Natural" : "0"
}
},
"x_mentions" : {
"x_mentions" : {
"Date::Parse" : "0",
"DateTime::Format::Flexible" : "0",
"DateTime::Format::Natural" : "0"
}
}
},
"provides" : {
"Acme::CPANModules::Parse::HumanDate" : {
"file" : "lib/Acme/CPANModules/Parse/HumanDate.pm",
"version" : "0.002"
}
},
"release_status" : "stable",
Acme::CPANModules::Parse::HumanDate - List of modules that parse human
date/time expression
VERSION
This document describes version 0.002 of
Acme::CPANModules::Parse::HumanDate (from Perl distribution
Acme-CPANModules-Parse-HumanDate), released on 2023-10-31.
DESCRIPTION
ACME::CPANMODULES ENTRIES
DateTime::Format::Natural
Author: SCHUBIGER <https://metacpan.org/author/SCHUBIGER>
Compared to DateTime::Format::Flexible, this module can also parse
duration in addition to date/time, e.g.:
2 years 3 months
And it also can extract the date expression from a longer string.
Speed-wise, I'd say the two modules are roughly comparable. For some
patterns one might be faster than the other.
DateTime::Format::Flexible
Author: THINC <https://metacpan.org/author/THINC>
One advantage of this over DateTime::Format::Natural is its time
zone support, e.g.:
yesterday 8pm UTC
yesterday 20:00 +0800
yesterday 20:00 Asia/Jakarta
Speed-wise, I'd say the two modules are roughly comparable. For some
patterns one might be faster than the other.
Date::Parse
lib/Acme/CPANModules/Parse/HumanDate.pm view on Meta::CPAN
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2023-10-31'; # DATE
our $DIST = 'Acme-CPANModules-Parse-HumanDate'; # DIST
our $VERSION = '0.002'; # VERSION
our $LIST = {
summary => "List of modules that parse human date/time expression",
entries => [
{
module=>'DateTime::Format::Natural',
description => <<'_',
Compared to <pm:DateTime::Format::Flexible>, this module can also parse
duration in addition to date/time, e.g.:
2 years 3 months
And it also can extract the date expression from a longer string.
Speed-wise, I'd say the two modules are roughly comparable. For some patterns
one might be faster than the other.
_
bench_code_template => 'DateTime::Format::Natural->new->parse_datetime(<str>)',
},
{
module=>'DateTime::Format::Flexible',
description => <<'_',
One advantage of this over <pm:DateTime::Format::Natural> is its time zone
support, e.g.:
yesterday 8pm UTC
yesterday 20:00 +0800
yesterday 20:00 Asia/Jakarta
Speed-wise, I'd say the two modules are roughly comparable. For some patterns
one might be faster than the other.
_
bench_code_template => 'DateTime::Format::Flexible->new->parse_datetime(<str>)',
},
{
module => 'Date::Parse',
description => <<'_',
This module can parse several formats, but does not really fall into "human
date/time parser" as it lacks support for casual expression like "yesterday" or
3 hours ago".
lib/Acme/CPANModules/Parse/HumanDate.pm view on Meta::CPAN
=head1 VERSION
This document describes version 0.002 of Acme::CPANModules::Parse::HumanDate (from Perl distribution Acme-CPANModules-Parse-HumanDate), released on 2023-10-31.
=head1 DESCRIPTION
=head1 ACME::CPANMODULES ENTRIES
=over
=item L<DateTime::Format::Natural>
Author: L<SCHUBIGER|https://metacpan.org/author/SCHUBIGER>
Compared to L<DateTime::Format::Flexible>, this module can also parse
duration in addition to date/time, e.g.:
2 years 3 months
And it also can extract the date expression from a longer string.
Speed-wise, I'd say the two modules are roughly comparable. For some patterns
one might be faster than the other.
=item L<DateTime::Format::Flexible>
Author: L<THINC|https://metacpan.org/author/THINC>
One advantage of this over L<DateTime::Format::Natural> is its time zone
support, e.g.:
yesterday 8pm UTC
yesterday 20:00 +0800
yesterday 20:00 Asia/Jakarta
Speed-wise, I'd say the two modules are roughly comparable. For some patterns
one might be faster than the other.
( run in 0.384 second using v1.01-cache-2.11-cpan-05444aca049 )