hrtime 0.2.0

A thin library which converts seconds into either a colon-seperated time string and vice versa, or into the raw hour, minute, and second values.
Documentation
1
2
3
4
5
6
fn main() {
    let seconds = 301;
    let (hrs, min, sec) = hrtime::to_time(seconds);
    // Prints "301 seconds is 0h5m1s!"
    println!("{seconds} seconds is {hrs}h{min}m{sec}s!");
}