dateparser icon indicating copy to clipboard operation
dateparser copied to clipboard

search_dates separates date and hours and minutes

Open TheUltimateDab opened this issue 2 years ago • 2 comments

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

TheUltimateDab avatar Aug 24 '21 18:08 TheUltimateDab

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).

Gallaecio avatar Sep 17 '21 12:09 Gallaecio

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

here's the problem shown in python interpreter:

search_dates

TheUltimateDab avatar Sep 20 '21 02:09 TheUltimateDab