timetwister icon indicating copy to clipboard operation
timetwister copied to clipboard

Powerful Ruby date parser

Results 7 timetwister issues
Sort by recently updated
recently updated
newest added

TODO: - more comprehensive commenting - document principles of date parsing - howto for adding new parsers

Given the number of hoops that timetwister jumps through to format dates for Chronic, I wonder if it's possible to instead directly use `DateTime#strptime` to transform strings into DateTime objects.

For single dates (e.g. `July 4, 1776`), there are currently a number of forms that they can take (e.g. `1776 July 4`, `1776 4 July`, etc.). Notably, `match_replace` parser 80...

Starting a rails (3.2) app using Ruby 2.2 output the following: ``` yada/yada/yada/.rvm/gems/ruby-2.2.6@gemsetname/gems/timetwister-0.2.5/lib/timetwister/utilities.rb:124: warning: duplicated key at line 138 ignored: "marzo" yada/yada/yada/.rvm/gems/ruby-2.2.6@gemsetname/gems/timetwister-0.2.5/lib/timetwister/utilities.rb:129: warning: duplicated key at line 143 ignored: "agosto"...

Timetwister already has the ability to support certainties and ranges; as such, there's no reason why it shouldn't support EDTF. `19uu` should be treated similarly to `19--` `~` should be...

The library currently has no foreign language support, although it should be simple to implement (dict of mappings e.g. `{"janvier" => "January"}`