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 (try_)from_secs_f64, (try_)from_millis_f64, as_millis_f64 and as_secs_f64 to TimeDelta #1601

Open
bouk opened this issue Jul 22, 2024 · 1 comment

Comments

@bouk
Copy link

bouk commented Jul 22, 2024

This allows converting a floating point representation of millis/secs into durations, just like std::time::Duration has.

@djc
Copy link
Member

djc commented Jul 23, 2024

I think this could make sense -- want to submit a PR?

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

2 participants