chronic is a new natural date/time parser for Ruby. By "natural" I mean something like "tomorrow 5pm".
I talked with Jesse (obra) that we need something close to this in Perl as a standalone module as well. By standalone we mean something not Date::Manip, which code and APIs make me very sad. I haven't looked at the chronic code yet but I believe this has an MIT/X11 license and would not be that hard to port to Perl.
CVS (Score:2)
Re: CVS (Score:1)
DateTime::Natural::Parse (Score:1)
http://search.cpan.org/~schubiger/DateTime-Natural-Parse-0.01/ [cpan.org]
Re: DateTime::Natural::Parse (Score:1)
I'd rather see the ParseDate function factored out from Date::Manip. Date::Manip has been around for a long time, so it's mature. It's localized for English, French, Swedish, etc...
This new module has the feel of "Ooh, I better get something on CPAN before someone else does!"
Re: (Score:1)
Please do. I had a look at the code and ended up with a headache
Re: (Score:2)
I'd feel better if there was a test suite attached to it to check the examples in the documentation. I'd also like to be able to have a natural string relative to another date (opposed to just now.) Actually, thinking about it, the latter is a prerequisite for the former.