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

Question: Is there a dedicated type for dates? #1093

Closed
devforfu opened this issue Aug 15, 2018 · 1 comment
Closed

Question: Is there a dedicated type for dates? #1093

devforfu opened this issue Aug 15, 2018 · 1 comment

Comments

@devforfu
Copy link

There is a way to validate date string using callbacks. However, is there a dedicated type for dates with specific parsing formats? Something similar to the type click.IntRange, like, click.Date?

@jcrotts
Copy link
Contributor

jcrotts commented Aug 20, 2018

This tracker is for issues related to the project itself, not general questions.

Checkout https://github.com/click-contrib/click-datetime , it might have what you need.

Otherwise the easiest thing to do would probably be to subclass click.ParamType

@jcrotts jcrotts closed this as completed Aug 20, 2018
@pallets pallets locked as resolved and limited conversation to collaborators Aug 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants