timediff
timediff copied to clipboard
🦀 Rust library for printing human readable, relative time differences
I also noticed the following errors: - "5 минуты назад" instead of "5 минут назад" - "28 минуты назад" instead of "28 минут назад"
I tried to format Duration in for past time, but I realized that `before_current_ts` is set automatically and it is always false for Duration.
Currently only support `en-US, zh-CN, ru-RU and tr-TR`, it will be more awesome to support more locale 🎉
API: [timediff](https://docs.rs/timediff/0.2.0/timediff/struct.TimeDiff.html) Reference: [string-vs-str-in-rust](https://blog.thoughtram.io/string-vs-str-in-rust/)