Has anyone come across a script / cl app written in any language that handles the parsing of human-entered dates well? I’d love to be able to parse, for example:
- “3 to 4 weeks”
- “2 – 3 days”
- “3 weeks to 2 months”
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Chronic gem for ruby will allow you to express dates in a natural form.
Some examples of supported forms (from the documentation)
I have not used it so can not comment on its performance.