Conversion between chrono duration to std time duration

How I can convert between chrono::Duration to std::time::duration?

Use the to_std method.

1 Like

https://docs.rs/chrono/0.4.9/chrono/struct.Duration.html#method.to_std

1 Like