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

Support European format d-m-yy 2-digit year and 1-digit day & month #356

Closed mgaskill closed 1 year ago

mgaskill commented 7 years ago

Provide support for the common European format d-m-yy, which allows 2-digit year, as well as 1-digit day and month.

With this change, Chronic will now support the following additional formats:

Chronic.parse("27.5.1979")
Chronic.parse("3.5.1979")
Chronic.parse("27.05.79")
Chronic.parse("27.5.79")
Chronic.parse("3.5.79")

Updated README.md to include the new supported formats, as well as these existing formats:

nitesh-varma commented 5 years ago

Can this be merged to master?

mgaskill commented 5 years ago

It looks like there are merge conflicts with another change that was merged since I submitted this PR. I'll have to look at it when I have a chance.