In Rust, format Duration into a string like "1 hour ago" or "01hou".
Attached the demo executable. Note that panics when supplying invalid arguments or data are expected.