mojombo / chronic

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

adding synonymous date/time #351

Open arjunmenon opened 7 years ago

arjunmenon commented 7 years ago

Hey Man Is there a way to add certain date/time objects which can mean the same?

I tried parsing day after tomorrow but it returns nil. It would correctly parse 2 days from now though.

Anyway to make them synonymous? Or someway to fix this?

davispuh commented 7 years ago

This format isn't implemented, but it already works in my unfinished rewrite branch (#347). There it's very easy to add new date/time formats (lib/chronic/definition.rb)