akoumjian / datefinder

Find dates inside text using Python and get back datetime objects
http://datefinder.readthedocs.org/en/latest/
MIT License
634 stars 166 forks source link

find_dates fails when there's a number after a date #199

Open alexmadey-oc opened 5 months ago

alexmadey-oc commented 5 months ago

The following fails to find any dates datefinder.find_dates("9/15/27 144A"). I think datefinder wants to treat the 144A as an hour component, but it fails since 144A is not a valid hour. If I put a valid hour like "9/15/27 12", it parses the 12 as an hour component. A potential solution would be to allow the user to specify that they only want to find dates and not any time components.

Diglador commented 2 months ago

06-15 21:21:51.754 5395 5395 2024-06-15 21:21:51.754 5395 5395 same problem