dateparser
dateparser copied to clipboard
search_dates separates date and hours and minutes
When I pass the string "timestamp">timestamp 24-Aug-2021 11:00" to search_dates, I would naturally expect it to return [('24-Aug-2021 11:00', datetime.datetime(2021, 8, 24, 11, 0))], however, it actually returns [('11:00', datetime.datetime(2021, 8, 24, 11, 0)), ('24-Aug-2021', datetime.datetime(2021, 8, 24, 0, 0))]. In other words, it separates the date and the hours
Could you indicate the dateparser version you used and show the reproducible example in a Python interpreter (i.e. >>>
lines; the input string is not clear to me from your report, threre’s 3 double-quotes in there).
here's the version info of the library:
Name: dateparser Version: 1.0.0 Summary: Date parsing library designed to parse dates from HTML pages Home-page: https://github.com/scrapinghub/dateparser Author: Scrapinghub Author-email: [email protected] License: BSD