chrono icon indicating copy to clipboard operation
chrono copied to clipboard

Add (try_)from_secs_f64, (try_)from_millis_f64, as_millis_f64 and as_secs_f64 to TimeDelta

Open bouk opened this issue 1 year ago • 1 comments

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

bouk avatar Jul 22 '24 14:07 bouk

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

djc avatar Jul 23 '24 10:07 djc