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

Custom datetime format #107

Closed
max-sixty opened this issue Jun 11, 2019 · 2 comments
Closed

Custom datetime format #107

max-sixty opened this issue Jun 11, 2019 · 2 comments

Comments

@max-sixty
Copy link

Would you take a PR that allowed for passing a datetime string in the ProgressBar format?

Would cover #71 and more

I'm not sure exactly how it would fit with the format string. We could add it as an additional argument after the style argument; e.g. if were named elapsed_chrono

{spinner:.green} [{elapsed_chrono:.blue.%s:%ff}] [{bar:40.cyan/blue}] {bytes} ({eta})

...but is that too large an API change for the benefit?

@mitsuhiko
Copy link
Collaborator

Yep, would accept a PR.

@djc
Copy link
Collaborator

djc commented Feb 22, 2022

I think this is currently possible using custom formatters.

@djc djc closed this as completed Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants