#date #date-time #hh-mm-ss

temps

temps is a library for working with time and dates in Rust

8 releases

0.0.15 Feb 23, 2024
0.0.14 Feb 23, 2024
0.0.12 Nov 21, 2022

#172 in Date and time

Download history 238/week @ 2024-02-18 58/week @ 2024-02-25 8/week @ 2024-03-03 7/week @ 2024-03-10 107/week @ 2024-03-31

115 downloads per month

Custom license

8KB
108 lines

temps

temps or [] is a library for working with time and dates in Rust.

Usage

Add temps to your Cargo.toml.

temps = "0"

hh:mm:ss

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"

Dependencies

~0–455KB