DateTime-Format-Natural

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN


 - 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]

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.

Changes  view on Meta::CPAN

 - 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.

0.79_01 Mon Oct 19 13:30:14 CEST 2009

 - Parse certain common variations of AM/PM or missing " at ".
   [rt #50547 - Andrew Sterling Hanenkamp]

Changes  view on Meta::CPAN

 - 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>]

0.74 Sat Dec 20 15:06:50 CET 2008

 - Merged development version to stable.

0.73_04 Sun Nov 30 12:27:26 CET 2008

 - Be more exact with english time matching regular expressions,
   which fixes [rt #41266 - Alex Bowley] partly.

 - The date and time validation methods do now honor all their
   arguments; this reduces the amount of false errors.

 - Wrap the code calling Nth_Weekday_of_Month_Year() in eval
   blocks to catch errors and add some code to act upon the results.

 - Do not call the setter method multiple times if the values can
   be set at once.

0.73_03 Thu Nov 13 21:20:53 CET 2008

 - Move some duplicated logic to helper methods.

 - Do not save intermediate data when generating the trace output.

 - Use the proper data structure name in parse_datetime_duration().

0.73_02 Sun Nov  2 21:40:31 CET 2008

 - The grammar parser now, for each run, only iterates through
   entries with an according count of fields.

0.73_01 Sat Oct 18 22:21:56 CEST 2008

 - Corrected a few typos in the main documentation and also 
   reworded some bits.

0.73 Thu Sep  4 19:53:44 CEST 2008

Changes  view on Meta::CPAN

   error messages. [Pat Kale <kale1@llnl.gov>]

0.70 Mon Apr  7 20:29:39 CEST 2008

 - Fixed 'dateparse' failures which were introduced along with
   Params::Validate.

 - Added missing trace calls to _day_today(), _day_yesterday()
   and _day_tomorrow().

0.69 Sat Mar 15 13:44:03 CET 2008

 - Validation of arguments is now handled by Params::Validate.

0.68_01 Thu Mar 13 22:13:26 CET 2008

 - Undo for trailing newlines to be printed when initially
   checking the arguments for validity and some invalid ones are
   encountered. Furthermore, add quoting to the error message.

0.68 Sun Feb 17 14:19:07 CET 2008

 - Added 'prefer_future' test-file.

 - Added Test::MockTime to the dependency list in Build.PL.

 - Restructured documentation.

0.67 Fri Feb  8 01:04:38 CET 2008

 - Extended parser to accept a formatted date and time string.
   [suggested by Shawn M. Moore <sartak@gmail.com>]

0.66 Tue Jan 15 12:04:06 CET 2008

 - Merged development version to stable.

0.65_01 Tue Jan  8 14:13:18 CET 2008

 - Convey less filename information for all test-files (removed
   'en' suffixes), because they needlessly clutter the test output.
   Considering that the grammar is pluggable, we could still move language
   specific tests into subdirs, once multiple language grammars should be
   implemented.

0.65 Fri Dec 28 18:49:40 CET 2007

 - Localized $_ while constructing the format separator.
   [rt #31968 - Shawn M. Moore <sartak@gmail.com>]

0.64 Mon Dec 24 16:19:37 CET 2007

 - Improved the options parsing within scripts/dateparse (by
   introducing a subroutine to set default values independently).

0.63 Thu Dec 20 15:50:07 CET 2007

 - Merged development version to stable.

 - Renamed time_zone test-file (added 'en' suffix).

0.62_03 Thu Dec 13 20:53:11 CET 2007

 - Replaced remaining tabs within the entire source with
   regular spaces (4).

0.62_02 Thu Dec 13 12:12:06 CET 2007

 - Localized $1 within the grammar parser (i.e., the method _process())
   before examining whether a regular expression succeeded and if it did,
   check whether it did capture some content and save it on the "regex-stack".

 - Enhanced the diagnostic printed when faulty grammar types are encountered.

 - Changed a type definition from 'SCALAR' to 'REGEXP' within EN.pm.

0.62_01 Tue Dec 11 13:28:31 CET 2007

 - No "functional" changes, merely "cosmetic" ones.

0.62 Mon Dec  3 21:06:05 CET 2007

 - Added support for abbreviated week-/monthnames when 'prefer_future'
   option is enabled. [rt #31254 - Shawn M. Moore <sartak@gmail.com>]

 - Deprecated export of subs within Lang/Base.pm to Lang/EN.pm
   (the ISA relationship is sufficient).

0.61 Sat Nov 24 10:32:31 CET 2007

 - Improved code efficiency a bit & removed some dead code.

0.60 Tue Nov 20 16:59:24 CET 2007

 - Implemented better timezone handling and added according tests.
   [rt #30765 - Shawn M. Moore <sartak@gmail.com>]

0.59 Thu Nov 15 23:54:25 CET 2007

 - Made the 'prefer_future' parameter a bit more context-sensitive
   with regard to incremental of the current year.
   [rt #30763 - Shawn M. Moore <sartak@gmail.com>]

 - Updated the "SEE ALSO" sections within the documentation
   to refer back to the main package.

0.58 Thu Nov  1 19:54:41 CET 2007

 - Deprecated broken 'debug' parameter to parse_datetime*().

 - Fixed some parameters within scripts/dateparse which were
   erroneously declarated.

0.57 Thu Oct 25 21:21:56 CEST 2007

 - Added tests for durations (i.e., the method parse_datetime_duration()).

Changes  view on Meta::CPAN

 
0.27 Tue Apr 10 22:19:15 CEST 2007

 - Mentioning Tatsuhiko Miyagawa as the inspiration source in
   the documentation's Credits section.

 - Implemented a simple timespan calculation, provided the natural
   dates are separated by the literal token 'to' (case-insensitive).
   [Mark Stosberg <mark@summersault.com>]

0.26 Wed Mar 14 13:15:07 CET 2007

 - The constructor accepts now an optional 'format' parameter specifying
   in which format numeric dates should be parsed (either / or - may be
   used to separate the units). [mike <pulsation@gmail.com>]

0.25 Sun Mar 11 23:02:45 CET 2007

 - Separated the logic within parse_datetime() to _process()
   and according internal subroutines.

 - Commented the majority of functions within Base.pm.

 - Introduced List::MoreUtils' any() & none() functions;
   deprecated use of 'no warnings' statement which need
   arose by accessing indexes of @{$self->{tokens}} where
   no members were present.

 - Created TODO file with pending items.

0.24 Wed Jan 17 22:51:51 CET 2007

 - Introduced a warning handler to silence the warnings about
   undefined values when pattern matching, subtracting and
   performing string comparisons in Natural/Base.pm.

 - Merged the "frontend" scripts to a single one taking
   optionally a language argument indicating the country
   code among other arguments.

 - Made 01-parse_en.t's & 02-parse_de.t's code more readable
   by adding some more separating lines.

 - Moved 'our' declarations in DE.pm & EN.pm towards the top.

0.23 Tue Jan 16 19:51:50 CET 2007

 - The language metadata classes have an AUTOLOAD handler & __new
   constructor automatically exported to their namespaces. Because
   some local fiddling with AUTOLOAD and dynamic variable lookup is
   done, a bunch of symbolic references are created on-the-fly.

0.22 Tue Jan 16 02:58:15 CET 2007

 - Previously four digits were occasionally interpreted as year
   and as well as time based upon context. Disambiguated usage
   as year (applies to all Lang:: classes) and fixed all test
   cases were bogus return values from parse_datetime() have
   been expected in order to have no tests fail.

 - Bound the temporary disablement of strictness for references
   to a tighter scope (applies to all Lang:: classes).

0.21 Tue Nov 28 09:31:20 CET 2006

 - Corrected the classes names provided to use_ok() in 00-load.t.
   [SEKIMURA sekimura@gmail.com]

0.20 Tue Nov 28 01:44:46 CET 2006

 - Optimised the regular expressions used in the AUTOLOAD routine
   in the language classes.

0.19 Mon Nov 27 20:06:17 CET 2006

 - Added to DE.pm & EN.pm an AUTOLOAD handler for each of them.
   The subroutine called prefixed with two underscores will be
   translated to an according variable name without underscores.
   The parameter to the subroutine will function as variable
   lookup key.

0.18 Sun Nov 26 17:35:17 CET 2006

 - Fixed all occurences of the global weekday hash by adding the
   missing key "{data}" to the variable lookup.

0.17 Sun Nov 26 16:50:14 CET 2006

 - Encapsulated the metadata within the language packages in an
   object which class gets subclassed from Natural.pm.
   [Tatsuhiko Miyagawa <miyagawa@gmail.com>]

0.16 Sat Nov 25 18:09:48 CET 2006

 - Added missing '1;' to the documentation of Authoring.pod.

 - Changed strings in Authoring.pod to be italic.

 - The testsuite now contains a german aquivalent of the english
   parsing test.

0.15 Sam Nov 25 16:49:22 CET 2006

 - Added DateTime::Format::Natural::Lang::Authoring documentation.

0.14 Sat Nov 25 14:34:33 CET 2006

 - Corrected broken package definition.

0.13 Sat Nov 25 04:14:54 CET 2006

 - Separated data from logic by keeping all regular expressions in
   separate packages.

 - Language support for german has been included.

0.12 Fri Nov 24 20:36:37 CET 2006

 - Added some basic tests to the testsuite which exercice
   converting natural format strings to an according datetime object.

 - Enhanced the collection of valid strings that are translated.

0.11 Fri Nov 24 02:15:30 CET 2006

 - Refactored the code where duplicated chunks were available.

 - Evaluated whether the current listed expressions pass the parsing.

0.10 Thu Nov 23 01:14:44 CET 2006

 - Substituted additions/subtractions where possible with the
   appropriate DateTime method calls.

 - An Exception is thrown if no valid input has been given.
   [Tatsuhiko Miyagawa <miyagawa@gmail.com>]

0.09 Sun Nov 19 14:38:24 CET 2006

 - Date strings with slashes are now being split and assigned
   to the appropriate variables.

 - Moved the initialization of object data into a sub.
   Same procedure for the code chunk returning a datetime object.

0.08 Sun Nov 19 12:30:24 CET 2006

 - Code is now object-oriented.

0.07 Sat Oct 28 17:16:53 CEST 2006

 - Replaced all tabs in EN.pm with regular spaces (4).

0.06 Wed Oct 25 20:24:38 CEST 2006

 - Substituted exporting functions with an object-oriented constructor.



( run in 1.277 second using v1.01-cache-2.11-cpan-49f99fa48dc )