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

Add support for ISO 8601 datetimes in bot commands #74

Open
josh-kynaston opened this issue Aug 18, 2024 · 2 comments
Open

Add support for ISO 8601 datetimes in bot commands #74

josh-kynaston opened this issue Aug 18, 2024 · 2 comments
Labels
enhancement New feature or request good first issue

Comments

@josh-kynaston
Copy link
Contributor

While bot commands currently accept an time interval (1d, 3M, etc"), it would be convenient if we could also specify datetimes. I propose datetimes be specified per ISO 8601, as the native datetime python module supports parsing these strings anyway.

The commands .poll from consensus.py and .remindme from reminders.py stand out to me as particular QoL improvements.

Potentially a good first issue for would-be contributors.

@mniip
Copy link
Member

mniip commented Aug 22, 2024

An old dream of mine was to somehow yank the date parser from the GNU coreutils date utility. Vis:

$ date --date 'next friday 3PM'
Fri Aug 23 03:00:00 PM CEST 2024

This proves to be challenging however because the parser is not a library, just a piece of C code.

@josh-kynaston
Copy link
Contributor Author

seems like https://dateparser.readthedocs.io/en/latest/ would do the trick?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue
Projects
None yet
Development

No branches or pull requests

2 participants