Skip to content

search_dates is... #681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cysabi opened this issue May 14, 2020 · 1 comment
Open

search_dates is... #681

cysabi opened this issue May 14, 2020 · 1 comment

Comments

@cysabi
Copy link

cysabi commented May 14, 2020

>>> from dateparser.search import search_dates
>>> search_dates("May 31, 8AM UTC")
[
  ('May 31', datetime.datetime(2020, 5, 31, 0, 0)),
  ('8AM UTC', datetime.datetime(2020, 8, 31, 0, 0, tzinfo=<StaticTzInfo 'UTC'>))
]
>>> 
@cysabi
Copy link
Author

cysabi commented May 15, 2020

I believe I found the issue here, changing 8AM to 8:00AM does the trick.

the :00 should really be optional if am / pm is detected after the number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants