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

Change impl Format for core::time::Duration #911

Open
jonathanpallant opened this issue Dec 6, 2024 · 1 comment
Open

Change impl Format for core::time::Duration #911

jonathanpallant opened this issue Dec 6, 2024 · 1 comment

Comments

@jonathanpallant
Copy link
Contributor

impl Format for core::time::Duration prints "Duration {{ secs: {=u64}, nanos: {=u32} }}", duration.as_secs(), duration.subsec_nanos()

It would be nicer to have it print "{=u64:tus}", duration.as_micros() as u64, because tus prints timestamps nicely.

@jonathanpallant
Copy link
Contributor Author

Or even {=u64}.{=u32:09} would be better.

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

1 participant