DateTime::Format::Text - Find a Date in Text
Version 0.06
Find a date in any text.
use DateTime::Format::Text; my $dft = DateTime::Format::Text->new(); # ...
Creates a DateTime::Format::Text object. Takes no arguments
Synonym for parse().
Returns a DateTime object constructed from a date/time string embedded in arbitrary text.
Can be called as a class or object method.
When called in an array context, returns an array containing all of the matches.
If the given test is an object, it's sent the message as_string() and that is parsed
use Class::Simple; my $foo = Class::Simple->new(); $foo->as_string('25/12/2022'); my $dt = $dft->parse($foo);
Nigel Horne, <njh at bandsman.co.uk>
<njh at bandsman.co.uk>
Based on https://github.com/etiennetremel/PHP-Find-Date-in-String. Here's the author information from that:
author Etienne Tremel license L<https://creativecommons.org/licenses/by/3.0/> CC by 3.0 link L<http://www.etiennetremel.net> version 0.2.0
DateTime::Format::Natural
You can find documentation for this module with the perldoc command.
perldoc DateTime::Format::Text
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=DateTime-Format-Text
Search CPAN
http://search.cpan.org/dist/DateTime-Format-Text/
Copyright 2019-2023 Nigel Horne.
This program is released under the following licence: GPL2
To install DateTime::Format::Text, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DateTime::Format::Text
CPAN shell
perl -MCPAN -e shell install DateTime::Format::Text
For more information on module installation, please visit the detailed CPAN module installation guide.