DateTime::Format::Natural

Create machine readable date/time with natural parsing logic
Download

DateTime::Format::Natural Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Steven Schubiger
  • Publisher web site:
  • http://search.cpan.org/~schubiger/

DateTime::Format::Natural Tags


DateTime::Format::Natural Description

Create machine readable date/time with natural parsing logic DateTime::Format::Natural is a Perl module that takes a string with a human readable date/time and creates a machine readable one by applying natural parsing logic.SYNOPSIS use DateTime::Format::Natural; $parser = DateTime::Format::Natural->new; $date_string = $parser->extract_datetime($extract_string); @date_strings = $parser->extract_datetime($extract_string); $dt = $parser->parse_datetime($date_string); @dt = $parser->parse_datetime_duration($date_string); if ($parser->success) { # operate on $dt/@dt, for example: printf("d.d.M d:d:d\n", $dt->day, $dt->month, $dt->year, $dt->hour, $dt->min, $dt->sec); } else { warn $parser->error; } @traces = $parser->trace; Requirements: · Perl


DateTime::Format::Natural Related Software