Date::Extract::DE - Extract dates from german text
0.0.6
use Date::Extract::DE; my $parser = Date::Extract::DE->new( reference_date => $reference_date ); my $dates = $parser->extract($text); my $infos = $parser->extract_with_context($text); printf("%s => %s\n", $_->{context}, $_->{date}) foreach @$infos;
This is a module to extract dates from german text (similar to Date::Extract).
Creates a new instance. Optionally, you can specify a reference Date::Simple which is used to determine the year when a date is given incompletely in the text (default is today). You can also specify a maximum numer of days to look back when an incomplete date is guessed (otherwise the closest date is used)
Tries to extract dates from the text and returns an arrayref of Date::Simple instances
Tries to extract dates from the text and returns an arrayref of HashRef instances. Each HashRef contains a key 'date' which maps to a Date::Simple instance, and a key 'context' mapping to the date string found in the original text
<quattro at cpan org>
<christian.eder@apa.at>
Copyright (c) 2020, APA-IT. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This module is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this module. If not, see http://www.gnu.org/licenses/.
To install Date::Extract::DE, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Date::Extract::DE
CPAN shell
perl -MCPAN -e shell install Date::Extract::DE
For more information on module installation, please visit the detailed CPAN module installation guide.