Crates.io | temps |
lib.rs | temps |
version | 0.0.15 |
source | src |
created_at | 2022-11-20 21:29:47.454029 |
updated_at | 2024-02-23 00:17:10.580081 |
description | temps is a library for working with time and dates in Rust |
homepage | |
repository | https://github.com/icepuma/temps |
max_upload_size | |
id | 719414 |
size | 9,233 |
temps
or [tã]
is a library for working with time and dates in Rust.
Add temps
to your Cargo.toml
.
temps = "0"
I migrated the functionality of hhmmss into temps
as it is not actively maintained anymore.
let duration = std::time::Duration::new(10, 0); // also works for "chrono::Duration" and "time::Duration"
duration.hhmmss() // yields "00:00:10"
duration.hhmmssxxx() // yields "00:00:10.000"