Packages / rupm

rs-time-clock 0.1.0

Dates and times: ISO strings, parsing, relative times like 3 days ago, durations as text

Install

cargo add rs-time-clock --registry rupm

In Ruststudio: Packages, search for rs-time-clock, Install.

Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-23.

Versions

README

# rs-time-clock

Dates and times: ISO strings, parsing, "3 days ago", durations as text

Add it with `rupm add rs-time-clock` (or `cargo add rs-time-clock --registry rupm`).

```rust
println!("{}", rs_time_clock::now_iso());                  // 2026-10-30T12:34:56Z
println!("{}", rs_time_clock::format_duration(3725));      // 1h 2m 5s
println!("{}", rs_time_clock::ago(1_700_000_000));         // 2 years ago
```