Skip to content
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

Is the string 'tilldate' supported in the parser? #864

Closed
vishaltanwar96 opened this issue Jan 6, 2021 · 4 comments
Closed

Is the string 'tilldate' supported in the parser? #864

vishaltanwar96 opened this issue Jan 6, 2021 · 4 comments

Comments

@vishaltanwar96
Copy link
Contributor

vishaltanwar96 commented Jan 6, 2021

Hi!
Is the string tilldate/till date supported?
This is what i've tried:

>>> from dateparser import parse, search
>>> parsed_date = parse('tilldate')
>>> print(parsed_date)
None
>>> parsed_date = parse('till date')
>>> print(parsed_date)
None
>>> parsed_date = search.search_dates('tilldate')
>>> print(parsed_date)
None
>>> parsed_date = search.search_dates('till date')
>>> print(parsed_date)
None


It returns None but i was expecting it to return datetime.datetime(2021, 1, 6, 0, 0) instead.
Thanks!

@Gallaecio
Copy link
Member

Looks like a valid expression: https://english.stackexchange.com/a/146771/87187

Not sure if we support any of the alternative expressions, but I guess it makes sense to eventually support it.

@vishaltanwar96
Copy link
Contributor Author

Hi @Gallaecio, thanks for a really quick response. Good to know that the expression would be supported in future. Is the project open for contributions regarding this? Cheers!

@Gallaecio
Copy link
Member

I think so, specially if it’s doable by modifying the corresponding YAML file. See https://dateparser.readthedocs.io/en/latest/contributing.html#guidelines-for-editing-translation-data

@serhii73
Copy link
Collaborator

We can close this issue because #1005 is merged.

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