mojombo / chronic

Chronic is a pure Ruby natural language date parser.
http://injekt.github.com/chronic
MIT License
3.24k stars 461 forks source link

Add support for rmn_s_r_p pattern #275

Closed mkdynamic closed 7 years ago

mkdynamic commented 10 years ago

I really wanted to add support for a bunch more. Anything of the form S_R_P_A can be sanely written as A_S_R_P, such as "1st September 2 years ago"/"2 years ago 1st September". Enumerating all those seems a bit nuts though. Any ideas of the right approach to try and support all those patterns in a sane way?

davispuh commented 10 years ago

merged in beta branch, reimplemented as 4806e1777367429f2ab192ba4b3367129ddae7c3 based on this, it should be very simple to implement much more formats.