Up to [cvs.NetBSD.org] / pkgsrc / time / p5-DateTime-Format-Natural
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Update to 1.19 Upstream changes: 1.19 2025-01-05 <schubiger@cpan.org> - Merged development version to stable. 1.18_01 2025-01-04 <schubiger@cpan.org> - Use List::Util instead of List::MoreUtils. [github #22 - Graham Ollis]
Update to 1.18 Upstream changes: 1.18 2023-10-05 <schubiger@cpan.org> - Merged development version to stable. 1.17_02 2023-10-03 <schubiger@cpan.org> - Validate 'daytime' parameter. 1.17_01 2023-10-01 <schubiger@cpan.org> - Minor wording tweak. - Minor indentation tweak. 1.17 2023-06-20 <schubiger@cpan.org> - Merged development version to stable. - Minor tweak.
Update to 1.16 Update DEPENDS Upstream changes: 1.16 2023-02-04 <schubiger@cpan.org> - Merged development version to stable. 1.15_03 2023-02-03 <schubiger@cpan.org> - Drop generating compat Makefile.PL. 1.15_02 2023-02-02 <schubiger@cpan.org> - Remove implicit m/d format; adjust tests. [github #11] 1.15_01 2023-01-27 <schubiger@cpan.org> - Move further testing modules to test_requires. [inspired by github #10 - Karen Etheridge] 1.15 2023-01-12 <schubiger@cpan.org> - Merged development version to stable. 1.14_03 2023-01-10 <schubiger@cpan.org> - Minor whitespace tweak. 1.14_02 2023-01-09 <schubiger@cpan.org> - Move testing modules to test_requires. [github #20 - Olaf Alders] - List Jim Avera in credits. 1.14_01 2023-01-08 <schubiger@cpan.org> - Fix extract_datetime fails with newly-created parser. [rt #144219 - Jim Avera] 1.14 2022-12-30 <schubiger@cpan.org> - Merged development version to stable. 1.13_02 2022-12-29 <schubiger@cpan.org> - Distinguish between truncated/unaltered when testing. 1.13_01 2022-08-06 <schubiger@cpan.org> - Add support for millisecond(s) as parsable unit.
Update to 1.13 Upstream changes: 1.13 2022-01-23 <schubiger@cpan.org> - Merged development version to stable. 1.12_01 2022-01-20 <schubiger@cpan.org> - Fix demand_future not working for method count_weekday. [github #16 - joernclausen]
time: Replace RMD160 checksums with BLAKE2s checksums All checksums have been double-checked against existing RMD160 and SHA512 hashes
time: Remove SHA1 hashes for distfiles
Update to 1.12 Upstream changes: 1.12 2021-03-19 <schubiger@cpan.org> - Merged development version to stable. 1.11_03 2021-03-13 <schubiger@cpan.org> - Refactor extracting duration. - Don't try to trim the extract string twice. - Amend documentation of ::Utils. 1.11_02 2020-10-16 <schubiger@cpan.org> - Introduce utility function trim(). 1.11_01 2020-10-03 <schubiger@cpan.org> - Assert that error() returns '' on success.
Update to 1.11 Upstream changes: 1.11 2020-09-23 <schubiger@cpan.org> - Merged development version to stable. 1.10_04 2020-09-22 <schubiger@cpan.org> - Fail when parsing month/day with an explicit ymd-format. 1.10_03 2020-09-19 <schubiger@cpan.org> - Clarify meaning of format option. [rt #133200 - Ricardo Signes] 1.10_02 2020-09-05 <schubiger@cpan.org> - Allow mm/dd and dd/mm as valid formats and amend tests. - Improve format matching regexes. - List example with new format under examples section. 1.10_01 2020-08-21 <schubiger@cpan.org> - Allow configuration to make "8/10" mean October 8. [rt #133140 - Ricardo Signes] - Minor tweaks.
p5-DateTime-Format-Natural: update to 1.10. 1.10 2020-06-26 <schubiger@cpan.org> - Merged development version to stable. 1.09_01 2020-06-21 <schubiger@cpan.org> - Support common unit abbreviations. [github #8 - grr] 1.09 2020-05-17 <schubiger@cpan.org> - Merged development version to stable. 1.08_02 2020-05-01 <schubiger@cpan.org> - Require Params::Validate >=1.15 to fix test failures with older versions. [testers #112427415 - Alexandr Ciornii] 1.08_01 2020-04-17 <schubiger@cpan.org> - Prefer the future even stronger with demand_future. [rt #92189 - Ricardo Signes] - When advancing to future times, consider also minutes/seconds. 1.08 2019-12-07 <schubiger@cpan.org> - Merged development version to stable.
Update to 1.07 Upstream changes: 1.07 2019-03-29 <schubiger@cpan.org> - Merged development version to stable. 1.06_01 2019-03-13 <schubiger@cpan.org> - New supported format: <variant> quarter. [Xiao Yafeng]
Update to 1.06 Upstream changes: 1.06 2018-10-28 <schubiger@cpan.org> - Merged development version to stable. 1.05_02 2018-10-27 <schubiger@cpan.org> - Amend description of prefer_future option. - Include the time zone when constructing DateTime objects for the datetime option in dateparse. - Minor tweaks to dateparse. 1.05_01 2018-10-25 <schubiger@cpan.org> - Fix advancing to future when both datetime and prefer_future options are provided.
Update to 1.05 Upstream changes: 1.05 2017-04-23 <schubiger@cpan.org> - Merged development version to stable. 1.04_01 2017-03-03 <schubiger@cpan.org> - New supported format: beginning/end of last month. [rt #120436 - Shawn M. Moore]
Update to 1.04 Upstream changes: 1.04 2016-07-24 <schubiger@cpan.org> - Merged development version to stable. 1.03_02 2016-07-15 <schubiger@cpan.org> - Document format: ISO 8601 <date>T<time>. - Amend introduction text for examples section. - List Ricardo Signes in credits. 1.03_01 2016-07-09 <schubiger@cpan.org> - New supported format: ISO 8601 <date>T<time>. [rt #115737 - Ricardo Signes]
Update to 1.03 Upstream changes: 1.03 2015-08-02 <schubiger@cpan.org> - Merged development version to stable. 1.02_03 2015-07-21 <schubiger@cpan.org> - Suggestions for simple documentation improvements. [rt #98634 - Tim Bunce] 1.02_02 2015-06-05 <schubiger@cpan.org> - Add encoding directive to POD. [rt #105000 - Debian Perl Group] 1.02_01 2014-02-09 <schubiger@cpan.org> - Add metadata repository link. [David Steinbrunner]
Add SHA512 digests for distfiles for time category Problems found with mismatching existing digests for: distfiles/asclock-classic-1.0.tar.gz distfiles/asclock-gtk-2.1.10beta.tar.gz distfiles/asclock-xlib-2.0.11.tar.gz distfiles/emiclock-2.0.2.tar.gz Otherwise, existing SHA1 digests verified and found to be the same on the machine holding the existing distfiles (morden). All existing SHA1 digests retained for now as an audit trail.
Update to 1.02 Upstream changlog is too long, please visit: http://cpansearch.perl.org/src/SCHUBIGER/DateTime-Format-Natural-1.02/Changes
Updating time/p5-DateTime-Format-Natural from 0.88 to 0.89 Upstream changes: 0.89 2010-08-05 <schubiger@cpan.org> - Merged development version to stable. 0.88_02 2010-07-29 <schubiger@cpan.org> - Replace calling of _valid_date() in _count_weekday_variant_month() with _check_date(), because errors are handled separate. - Use more descriptive variable names in _parse_formatted_ymd(). - Minor indentation and code tweaks. 0.88_01 2010-07-18 <schubiger@cpan.org> - Check if suffixes used for ordinal numbers are suitable. - Test that invalid ordinal numbers fail and valid ones succeed. - Add a test file for the tests expected to succeed. - Verify for parse failures their errors emitted. - While processing grammar expressions, save all captured values in order to pass the extra ones to the extended checks. - Improve whitespace of regular expressions handling durations.
Updating time/p5-DateTime-Format-Natural from 0.85 to 0.88 Upstream changes: 0.88 2010-06-16 <schubiger@cpan.org> - Merged development version to stable. 0.87_03 2010-06-12 <schubiger@cpan.org> - Fix broken use_ok() test for the Calc module. - Insert some missing examples in the grammar documentation. 0.87_02 2010-06-09 <schubiger@cpan.org> - Strengthen the check for invalid units of prefixed dates. - Add a test file for parse asserts. - Rename Base.pm to Calc.pm and adjust trace tests. - Reword the according abstract and description. - Document where arguments to dateparse's switches are required. - Allow dateparse to handle the language code in uppercase. 0.87_01 2010-06-06 <schubiger@cpan.org> - Match case-insensitively in the language option check. - Require (and not use) the grammar class in runtime eval. - Purge the remains of the formatted instance data member. - Delete some instance data through hash slices. - Convert a few non-option identifiers to lowercase. 0.87 2010-05-29 <schubiger@cpan.org> - Merged development version to stable. 0.86_02 2010-05-27 <schubiger@cpan.org> - Emit an error for 0 AM/PM suggesting to use 12 as zero. - Add tests for this extended check failure. - Adjust related prefer_future tests to make them pass. - When verifying that extended checks fail, call _get_error() to see whether it returns an error as expected. - Reset in _unset_error() with undef instead of empty string. 0.86_01 2010-05-18 <schubiger@cpan.org> - Introduce and use two flag handlers for AM/PM time values. [rt #56955 - Andrew Sterling Hanenkamp] - Assert that these values pass the extended meridiem check. - Split implicit matching of time only from grammar entries with an optional AM suffix. - Add tests for 12 AM/PM and the splitted grammar entries (including prefer_future ones). - Test that invalid meridiem time values fail. - Remove addition of 12 hours for PM time values in _at_time() and _time_full(). - Dispatch to _at() for AM/PM time, to _time() for time only. - Comment the purpose of the wrappers _at() and _time(). 0.86 2010-04-20 <schubiger@cpan.org> - Merged development version to stable. 0.85_02 2010-04-11 <schubiger@cpan.org> - Extract both caller and sub in ::Lang::Base's AUTOLOAD() at once. - Correct the indentation of the same subroutine. 0.85_01 2010-04-08 <schubiger@cpan.org> - New supported format: <time full> AM/PM. [Wes Morgan] - Make _time_full() capable of working with an hours option. - Initialize the hours option in _at_time() after having processed the arguments.
Updating time/p5-DateTime-Format-Natural from 0.84 to 0.85 pkgsrc changes: - Adjust HOMEPAGE to CPAN "Permalink" - Adjust dependencies according to module's META.yml Upstream changes: 0.85 2010-03-13 <schubiger@cpan.org> - Merged development version to stable. 0.84_03 2010-03-11 <schubiger@cpan.org> - Resolve short aliases only if preceded by a digit. - Don't capture the date separator for matching with the format. 0.84_02 2010-03-09 <schubiger@cpan.org> - Guess the format of dates with a dot or hyphen as separator. - Check for separator mismatch when not in lax mode. 0.84_01 2010-02-24 <schubiger@cpan.org> - Use the format parameter case-insensitively and test it. - Don't bless into a reference within the metadata base constructor. - Add some missing commas to the grammar description.
Updating time/p5-DateTime-Format-Natural from 0.83 to 0.84 Upstream changes: 0.84 2010-02-22 <schubiger@cpan.org> - Merged development version to stable. 0.83_04 2010-02-16 <schubiger@cpan.org> - Enhance the regular expression matching a non-word alias. - Correct the indentation of _Nth_Weekday_of_Month_Year(). 0.83_03 2010-02-14 <schubiger@cpan.org> - Introduce short name aliases. [rt #53976 - Kevin Field] - Support shortened relative dates with a +/- prefix. [rt #53976 - Kevin Field] - Add according tests for aliases and prefixed dates. - Test for case-insensitive processing of input strings. - Test compile-time loading of Aliases.pm. 0.83_02 Wed Jan 27 10:42:41 CET 2010 - New supported formats: <time> <weekday> and <time> on <weekday>. [rt #53979 - Kevin Field] 0.83_01 Mon Jan 18 10:28:42 CET 2010 - Pass the time zone object instead of name to the final DateTime constructor. [rt #53268 - Eric Wilhelm]
Updating time/p5-DateTime-Format-Natural from 0.79 to 0.83 Upstream changes: 0.83 Wed Jan 13 15:51:11 CET 2010 - Merged development version to stable. 0.82_02 Wed Jan 6 10:57:43 CET 2010 - New supported format: M/D. [rt #53187 - Shawn M. Moore] - Handle the new format with prefer-future semantics. - Add tests for the new format and also for related durations. - Document the new format and variations of it. - Restrict counting of format separators to the formatted substring. - Move the code processing formatted dates to a separate class. - Fix the checking for an invalid format parameter. - Complete <date> <time> to <time> type of durations. - Split the duration string at word boundary of the separator. - Restore the datetime object for each parse when running tests. - Test compile-time loading of Formatted.pm. 0.82_01 Thu Dec 31 12:10:30 CET 2009 - Save the trace of each parse while processing a duration. - Call for formatted dates the wrapper _set() instead of set() in order to alter the modified counters. - dateparse: when printing traces, print a trace for each object returned. - Add tests for the trace method and improve its documentation. - Document possible bugs and caveats. - Rename some variables with method name strings to be more descriptive and also interpolate their strings initially. - Substitute an expression for a block as used by 'map'. 0.82 Mon Dec 21 10:15:52 CET 2009 - Merged development version to stable. 0.81_04 Wed Dec 16 13:32:35 CET 2009 - dateparse: use the same class instance for each parse run; match case-insensitively for commands that quit. 0.81_03 Fri Dec 11 10:32:08 CET 2009 - Use string interpolation instead of concatenation for symbolic references in __new(). 0.81_02 Wed Dec 9 20:07:19 CET 2009 - Reduce the common logic of _valid_date() and _valid_time() by moving most of it to a method. - Store the daytime option internally with a less nested name. 0.81_01 Mon Dec 7 11:14:19 CET 2009 - Place the common body of _add() and _subtract() in a single method. - Comment the inverse use of _add() within _add_or_subtract(). - Set values at once within _check_time(). - Initialize tokens with an anonymous array reference. - Purge last unneeded occurrence of 'scalar'. 0.81 Sat Nov 21 12:59:17 CET 2009 - Merged development version to stable. 0.80_02 Wed Nov 18 10:53:05 CET 2009 - Move utility and wrapper methods to separate classes. - Test compile-time loading of Utils.pm and Wrappers.pm. - Don't force explicit scalar context where an implicit one exists. 0.80_01 Mon Nov 2 10:59:46 CET 2009 - Invoke _valid_date() in _day_month_year() to assert the validity of the date before setting it. - Separate fixed time data for testing purpose from code. 0.80 Fri Oct 30 10:15:53 CET 2009 - Merged development version to stable. 0.79_02 Mon Oct 26 10:11:09 CET 2009 - Improve wording and formatting of the documentation. - Update broken license links.
Updating time/p5-DateTime-Format-Natural from 0.78 to 0.79 pkgsrc changes: - reorder dependencies Upstream changes: 0.79 Sat Sep 19 12:23:20 CEST 2009 - Merged development version to stable. 0.78_03 Thu Sep 17 12:13:08 CEST 2009 - Relocate the formatted string printing of result strings used within the tests to the Test class. 0.78_02 Mon Sep 14 17:18:40 CEST 2009 - Add support for ranges representing the first and last day of a month or year. [rt #44067 - Michael Reddick] - Move the insertion code in parse_datetime_duration() to the Duration class and the checks to the english metadata class. - Quote for parsing failures with duration strings the entire input string instead of a partial date string. - Save and restore state for parse_datetime_duration(). - Test compile-time loading of Duration.pm. 0.78_01 Tue Sep 1 15:51:59 CEST 2009 - Set units at once within _check_date() when Date::Calc is not available and add a test. [rt #49326 - Clayton L. Scott]
Updating package for p5 module DateTime::Format::Natural from 0.77 to 0.78 pkgsrc changes: - Fixing dependency from time/p5-Date-Calc to devel/p5-Date-Calc Upstream changes: 0.78 Fri Aug 7 11:32:31 CEST 2009 - Merged development version to stable. 0.77_01 Thu Jun 25 16:00:27 CEST 2009 - Add a handful of new formats. [rt #43468 - Clayton L. Scott] - Don't eventually try to guess the century. - Introduce and use a class for common test routines. - Test compile-time loading of Test.pm. - Rename the misnamed 'hour' metadata option to 'hours'. - _daytime() does not use the 'hours' metadata option when it is set and hence remove such existing entries. - For base methods which use the 'hours' metadata option, assume a zero when no value is provided.
pkgsrc changes: - Updating package of p5 module DateTime::Format::Natural from 0.76 to 0.77 - Adjusting license according to META.yaml Upstream changes: 0.77 Sun Jun 14 20:46:53 CEST 2009 - Merged development version to stable. 0.76_04 Sat Jun 13 14:04:21 CEST 2009 - Remove comment in code about the legacy debug option. - Use '\s+' instead of the ambiguous ' ' as token split pattern. - Add some whitespace to the regexp which recognizes additional tokens for formatted dates. 0.76_03 Wed Jun 10 11:50:42 CEST 2009 - The current "now" can be overridden through the 'datetime' option. [rt #45127 - Giovanni Pensa] - parse_datetime_duration() handles durations where the second part is relative to the first one. [rt #45127 - Giovanni Pensa] - New supported relative duration: for <count> <unit>. [rt #45127 - Giovanni Pensa] 0.76_02 Sat Jun 6 13:24:58 CEST 2009 - When using prefer_future, also allow for weekdays combined with the time of day to be parsed correctly. [rt #46689 - Jason May] - New supported format: <weekday> <time>. [rt #46689 - Jason May] 0.76_01 Mon Jun 1 21:34:06 CEST 2009 - Change in default behavior: Use DateTime's truncate method to reset time components. Inspired by [rt #43468 - Clayton L. Scott] and suggestions from others.
PkgSrc changes: - Updating package for p5 module DateTime::Format::Natural from 0.74 to 0.76 - Setting license to gnu-gpl-v2 - Adjusting dependencies Upstream changes: 0.76 Thu Apr 9 12:08:32 CEST 2009 - Merged development version to stable. 0.75_05 Mon Apr 6 12:42:26 CEST 2009 - New supported format: final <weekday> in <month>. [rt #44810 - Christian Brink] - Wrap Days_in_Month() in Compat.pm. 0.75_04 Fri Apr 3 15:13:36 CEST 2009 - New supported formats: some suggested by [rt #44067 - Michael Reddick], while others have been independently added. - Fix a regression [rt #44691 - Jason May]. - Shift common conversion logic within base calculation methods to the grammar class. - Introduce a helper class for handling actions related to metadata flags and to serve as container for setter/checker methods. - Wrap Decode_Month() in Compat.pm. - Test both implementations within each method in Compat.pm. - Preserve order of tests. - Add a test-file for regressions. - Remove the obsoleted internal use of a total-modified counter. 0.75_03 Wed Mar 4 13:39:08 CET 2009 - Enhance the extended checks mechanism further to have it set an error message when a check fails. - Run tests without sorting the input strings first. - Test compile-time loading of Compat.pm. 0.75_02 Thu Feb 26 11:01:11 CET 2009 - Date::Calc is no longer a prerequisite; use it when available for calculations, otherwise fall back to using DateTime. [rt #43521 - Jesse Vincent <jesse@bestpractical.com>] 0.75_01 Sun Feb 22 12:09:32 CET 2009 - When prefer_future is set: Advance the day if the time specified is noticeable in the past. [rt #43417 - Jason May] - New supported format: <month> <monthday> <year>. [rt #43467 - Clayton L. Scott <clscott@cpan.org>] 0.75 Thu Feb 19 16:50:19 CET 2009 - Merged development version to stable. 0.74_04 Son Feb 15 20:59:28 CET 2009 - Refrain from adding leading zeros to unit values via sprintf() when constructing the final DateTime object. - Do not import Date_to_Days(), it's no longer required. 0.74_03 Fri Feb 13 13:15:11 CET 2009 - Guard against invalid expressions with a 's' suffix, but no multiple unit count. - Work around the segmentation fault taking place in 0.74_02 on perl 5.8.9 and 5.10.0. 0.74_02 Sun Feb 8 11:47:50 CET 2009 - New supported format: <count> <weekday>(s) from now. [rt #43088 - Anirvan Chatterjee] - Add a new field to the language grammar entries to handle extended checks of captured regex data. 0.74_01 Thu Jan 8 16:06:17 CET 2009 - When a four digit year is found, also allow for mm/dd/yyyy kind of formats. [Elliot Shank <perl@galumph.com>]
Added time/p5-DateTime-Format-Natural version 0.74 DateTime::Format::Natural takes a string with a human readable date/time and creates a machine readable one by applying natural parsing logic.
Initial revision