basic-human-duration
A very small crate to format durations for humans.
In comparison to the original repo...
- this supports months
- this adjusts what is considered "just now" (before it was <60 minutes, now it is <60 seconds)
- has other minor adjustments
Example
use ChronoHumanDuration;
use Duration;
let d = weeks + days;
assert_eq!;
let d = seconds;
assert_eq!;