DateTime-Format-Natural-1.03000755001750001750 012557436720 14603 5ustar00stssts000000000000DateTime-Format-Natural-1.03/META.yml000444001750001750 475412557436720 16223 0ustar00stssts000000000000--- abstract: 'Parse informal natural language date/time strings' author: - 'Steven Schubiger ' build_requires: Cwd: '0' File::Find: '0' File::Spec: '0' FindBin: '0' Module::Util: '0' Test::MockTime: '0' Test::More: '0' configure_requires: Module::Build: '0.42' dynamic_config: 1 generated_by: 'Module::Build version 0.4212, CPAN::Meta::Converter version 2.150001' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: DateTime-Format-Natural provides: DateTime::Format::Natural: file: lib/DateTime/Format/Natural.pm version: '1.03' DateTime::Format::Natural::Calc: file: lib/DateTime/Format/Natural/Calc.pm version: '1.40' DateTime::Format::Natural::Compat: file: lib/DateTime/Format/Natural/Compat.pm version: '0.07' DateTime::Format::Natural::Duration: file: lib/DateTime/Format/Natural/Duration.pm version: '0.06' DateTime::Format::Natural::Duration::Checks: file: lib/DateTime/Format/Natural/Duration/Checks.pm version: '0.04' DateTime::Format::Natural::Expand: file: lib/DateTime/Format/Natural/Expand.pm version: '0.03' DateTime::Format::Natural::Extract: file: lib/DateTime/Format/Natural/Extract.pm version: '0.11' DateTime::Format::Natural::Formatted: file: lib/DateTime/Format/Natural/Formatted.pm version: '0.07' DateTime::Format::Natural::Helpers: file: lib/DateTime/Format/Natural/Helpers.pm version: '0.06' DateTime::Format::Natural::Lang::Base: file: lib/DateTime/Format/Natural/Lang/Base.pm version: '1.08' DateTime::Format::Natural::Lang::EN: file: lib/DateTime/Format/Natural/Lang/EN.pm version: '1.60' DateTime::Format::Natural::Rewrite: file: lib/DateTime/Format/Natural/Rewrite.pm version: '0.06' DateTime::Format::Natural::Test: file: lib/DateTime/Format/Natural/Test.pm version: '0.10' DateTime::Format::Natural::Utils: file: lib/DateTime/Format/Natural/Utils.pm version: '0.05' DateTime::Format::Natural::Wrappers: file: lib/DateTime/Format/Natural/Wrappers.pm version: '0.03' recommends: Date::Calc: '0' requires: Carp: '0' Clone: '0' DateTime: '0' DateTime::TimeZone: '0' Exporter: '0' Getopt::Long: '0' List::MoreUtils: '0' Params::Validate: '0' Scalar::Util: '0' Storable: '0' Term::ReadLine: '0' boolean: '0' resources: license: http://dev.perl.org/licenses/ repository: https://github.com/stsc/DateTime-Format-Natural version: '1.03' DateTime-Format-Natural-1.03/META.json000444001750001750 726012557436720 16366 0ustar00stssts000000000000{ "abstract" : "Parse informal natural language date/time strings", "author" : [ "Steven Schubiger " ], "dynamic_config" : 1, "generated_by" : "Module::Build version 0.4212", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "DateTime-Format-Natural", "prereqs" : { "build" : { "requires" : { "Cwd" : "0", "File::Find" : "0", "File::Spec" : "0", "FindBin" : "0", "Module::Util" : "0", "Test::MockTime" : "0", "Test::More" : "0" } }, "configure" : { "requires" : { "Module::Build" : "0.42" } }, "runtime" : { "recommends" : { "Date::Calc" : "0" }, "requires" : { "Carp" : "0", "Clone" : "0", "DateTime" : "0", "DateTime::TimeZone" : "0", "Exporter" : "0", "Getopt::Long" : "0", "List::MoreUtils" : "0", "Params::Validate" : "0", "Scalar::Util" : "0", "Storable" : "0", "Term::ReadLine" : "0", "boolean" : "0" } } }, "provides" : { "DateTime::Format::Natural" : { "file" : "lib/DateTime/Format/Natural.pm", "version" : "1.03" }, "DateTime::Format::Natural::Calc" : { "file" : "lib/DateTime/Format/Natural/Calc.pm", "version" : "1.40" }, "DateTime::Format::Natural::Compat" : { "file" : "lib/DateTime/Format/Natural/Compat.pm", "version" : "0.07" }, "DateTime::Format::Natural::Duration" : { "file" : "lib/DateTime/Format/Natural/Duration.pm", "version" : "0.06" }, "DateTime::Format::Natural::Duration::Checks" : { "file" : "lib/DateTime/Format/Natural/Duration/Checks.pm", "version" : "0.04" }, "DateTime::Format::Natural::Expand" : { "file" : "lib/DateTime/Format/Natural/Expand.pm", "version" : "0.03" }, "DateTime::Format::Natural::Extract" : { "file" : "lib/DateTime/Format/Natural/Extract.pm", "version" : "0.11" }, "DateTime::Format::Natural::Formatted" : { "file" : "lib/DateTime/Format/Natural/Formatted.pm", "version" : "0.07" }, "DateTime::Format::Natural::Helpers" : { "file" : "lib/DateTime/Format/Natural/Helpers.pm", "version" : "0.06" }, "DateTime::Format::Natural::Lang::Base" : { "file" : "lib/DateTime/Format/Natural/Lang/Base.pm", "version" : "1.08" }, "DateTime::Format::Natural::Lang::EN" : { "file" : "lib/DateTime/Format/Natural/Lang/EN.pm", "version" : "1.60" }, "DateTime::Format::Natural::Rewrite" : { "file" : "lib/DateTime/Format/Natural/Rewrite.pm", "version" : "0.06" }, "DateTime::Format::Natural::Test" : { "file" : "lib/DateTime/Format/Natural/Test.pm", "version" : "0.10" }, "DateTime::Format::Natural::Utils" : { "file" : "lib/DateTime/Format/Natural/Utils.pm", "version" : "0.05" }, "DateTime::Format::Natural::Wrappers" : { "file" : "lib/DateTime/Format/Natural/Wrappers.pm", "version" : "0.03" } }, "release_status" : "stable", "resources" : { "license" : [ "http://dev.perl.org/licenses/" ], "repository" : { "url" : "https://github.com/stsc/DateTime-Format-Natural" } }, "version" : "1.03" } DateTime-Format-Natural-1.03/Makefile.PL000444001750001750 212012557436720 16705 0ustar00stssts000000000000# Note: this file was auto-generated by Module::Build::Compat version 0.4212 use ExtUtils::MakeMaker; WriteMakefile ( 'NAME' => 'DateTime::Format::Natural', 'VERSION_FROM' => 'lib/DateTime/Format/Natural.pm', 'PREREQ_PM' => { 'Carp' => 0, 'Clone' => 0, 'Cwd' => 0, 'DateTime' => 0, 'DateTime::TimeZone' => 0, 'Exporter' => 0, 'File::Find' => 0, 'File::Spec' => 0, 'FindBin' => 0, 'Getopt::Long' => 0, 'List::MoreUtils' => 0, 'Module::Util' => 0, 'Params::Validate' => 0, 'Scalar::Util' => 0, 'Storable' => 0, 'Term::ReadLine' => 0, 'Test::MockTime' => 0, 'Test::More' => 0, 'boolean' => 0 }, 'INSTALLDIRS' => 'site', 'EXE_FILES' => [ 'scripts/dateparse' ], 'PL_FILES' => {} ) ; DateTime-Format-Natural-1.03/Build.PL000444001750001750 267412557436720 16245 0ustar00stssts000000000000# Note: this file has been initially created by Make::Build::Convert 0.20_01 use strict; use warnings; use Module::Build; my $build = Module::Build->new ( module_name => 'DateTime::Format::Natural', dist_author => 'Steven Schubiger ', dist_version_from => 'lib/DateTime/Format/Natural.pm', requires => { 'boolean' => 0, 'Carp' => 0, 'Clone' => 0, 'DateTime' => 0, 'DateTime::TimeZone' => 0, 'Exporter' => 0, 'Getopt::Long' => 0, 'List::MoreUtils' => 0, 'Params::Validate' => 0, 'Scalar::Util' => 0, 'Storable' => 0, 'Term::ReadLine' => 0, }, build_requires => { 'Cwd' => 0, 'File::Find' => 0, 'File::Spec' => 0, 'FindBin' => 0, 'Module::Util' => 0, 'Test::MockTime' => 0, 'Test::More' => 0, }, recommends => { 'Date::Calc' => 0 }, script_files => [ 'scripts/dateparse' ], license => 'perl', create_readme => 1, create_makefile_pl => 'traditional', meta_merge => { resources => { repository => 'https://github.com/stsc/DateTime-Format-Natural', }, }, ); $build->create_build_script; DateTime-Format-Natural-1.03/INSTALL000444001750001750 45412557436720 15754 0ustar00stssts000000000000To install DateTime::Format::Natural, type the following: perl Build.PL ./Build ./Build test ./Build install Or, if you're on a platform (like DOS or Windows) that doesn't like the "./" notation, you can do this: perl Build.PL perl Build perl Build test perl Build install DateTime-Format-Natural-1.03/Changes000444001750001750 13210512557436720 16275 0ustar00stssts000000000000Revision history for Perl extension DateTime::Format::Natural. 1.03 2015-08-02 - Merged development version to stable. 1.02_03 2015-07-21 - Suggestions for simple documentation improvements. [rt #98634 - Tim Bunce] 1.02_02 2015-06-05 - Add encoding directive to POD. [rt #105000 - Debian Perl Group] 1.02_01 2014-02-09 - Add metadata repository link. [David Steinbrunner] 1.02 2013-04-30 - Merged development version to stable. 1.01_05 2013-04-01 - Parse and extract relative durations in reversed order. - Document reversed relative durations under examples. - Treat for grammar expressions as durations. - Refine gathering idents for from to durations. - Use rightmost matching token on left side of duration as type. - Split duration string only if accompanied by whitespace. - Strengthen matching duration substrings against regexes. - Extract regex captured punctuation marks in loop body. - Undo some loop indentation in test files. - Reorder version number variable in Calc class. 1.01_04 2013-01-17 - Concatenate duration expression chunks with separator. - Merge calls for extracting duration expressions. - Distinguish between expression types when finalizing. - Simplify finalizing date/grammar duration expressions. - Test that expressions do not overlap with duration ones. - Strip timespan separators from extract string. - Normalize whitespace of duration expressions. - Keep duration extract methods private. - Don't declare a plan for extract-expression tests. - Enhance comment in extract-expression test file. 1.01_03 2012-12-06 - Fix fatal error from extract tests on 5.{8.9,10.0}. - Display extracted strings for dateparse. 1.01_02 2012-11-29 - Extract relative and rewritten duration expressions. - Check parsing of extracted expressions. 1.01_01 2012-10-25 - Narrow scope of variables in _extract_expressions(). - Improve finalizing duration expressions. 1.01 2012-09-07 - Merged development version to stable. 1.00_02 2012-09-01 - Duplicate and extend types only for grammar expansion. - Initialize subscript variable. - Remove trailing semicolon in do block. 1.00_01 2012-07-21 - Extract expanded expressions and add a test. 1.00 2012-05-30 - Merged development version to stable. - Replace use of constant pragma with boolean. 0.99_01 2012-05-20 - Introduce ::Expand which handles expanding grammar. - Enhance main grammar loop to enable grammar expansion. - Include count of tokens for expanded grammar in lookup map. - Add test file for expansions. - Make the truncate_to grammar option an array reference. - Truncate values after each worker method called. - Move truncating code to a separate method. - Require Clone as prerequisite. - Mention expansion of grammar in docs. 0.99 2012-04-26 - Merged development version to stable. 0.98_03 2012-04-22 - Check if daytime exists in _daytime_variant(). - Load modules in test files where missing. 0.98_02 2012-04-22 - Add validation rules to allow passing DateTime::TimeZone objects. [Roman Filippov] - Test providing a DateTime::TimeZone object. - Load DateTime::TimeZone explicitly. - Test validation of constructor arguments. - List Roman Filippov in credits. 0.98_01 2012-01-01 - Mention and link to dateparse in the See also section. 0.98 2011-10-29 - Merged development version to stable. 0.97_02 2011-10-27 - Strip leading and trailing spaces from input strings. 0.97_01 2011-10-25 - Support parsing timestamp. [Xiao Yafeng] 0.97 2011-08-17 - Merged development version to stable. 0.96_04 2011-08-16 - Check that the datetime string for dateparse has at most two chunks (date/time); also require DateTime. - Elaborate on the format of dateparse's datetime string. 0.96_03 2011-08-13 - Add the datetime switch to dateparse and document it. - Print dateparse's dates formatted according to ISO 8601. 0.96_02 2011-08-10 - Revert truncating of ago formats. - Add Xiao Yafeng to credits. 0.96_01 2011-08-01 - New supported format: today ago. [Xiao Yafeng] - Truncate for this and other ago formats to day if there is no time component in order to produce more consistent results. - Add new and adjust existing regular tests for these formats; moreover, complete the list of parse failure tests. - List the added grammar in the documentation. 0.96 2011-06-01 - Merged development version to stable. 0.95_03 2011-05-30 - Add the extract switch to dateparse and document it. - Change dateparse's prefer_future option to be not negatable. 0.95_02 2011-05-28 - Reorder the nested extract loop iterating through the grammar entries to process only one subentry for all matching tokens. - Move the check for a date when extracting expressions to a method. - Add assert tests for extract_datetime(): one for the context dependant return and another for the nested extract loop fix. - Improve code visually of the parse success and failure test files. 0.95_01 2011-05-19 - Do no longer recommend Test::Pod and Test::Pod::Coverage. - Use quantifier which matches 1 or more times when extracting subroutine or method names. - Assign a list instead of pushing a string for time entries. 0.95 2011-05-14 - Merged development version to stable. 0.94_04 2011-05-11 - New supported format: