time-tools 0.1.0
Dates and times: ISO strings, parsing, relative times like 3 days ago, durations as text
Install
cargo add time-tools --registry rupm
In Ruststudio: Packages, search for time-tools, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.
Versions
- 0.1.0 2026-11-22
README
# time-tools
Dates and times: ISO strings, parsing, "3 days ago", durations as text
Add it with `rupm add time-tools` (or `cargo add time-tools --registry rupm`).
```rust
println!("{}", time_tools::now_iso()); // 2026-10-30T12:34:56Z
println!("{}", time_tools::format_duration(3725)); // 1h 2m 5s
println!("{}", time_tools::ago(1_700_000_000)); // 2 years ago
```