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
7
8
9
fn main() {
    let mut sec = 1200;
    println!("{sec} seconds is {},", hrtime::from_sec(sec));
    println!("{sec} with padding is {},", hrtime::from_sec_padded(sec));

    sec = 28309;
    println!("{sec} is {},", hrtime::from_sec(sec));
    println!("and {sec} with padding is {}!", hrtime::from_sec_padded(sec));
}