pub fn from_seconds(mut total_seconds: u64) -> TimeTuple {
        while total_seconds >= 86400 {
            total_seconds -= 86400;
        }
        let h = total_seconds / 3600;
        total_seconds -= h * 3600;
        let m = total_seconds / 60;
        total_seconds -= m * 60;
        TimeTuple {
            h: h as u8,
            m: m as u8,
            s: total_seconds as u8,
        }
    }
/// Same as `TimeTuple::new()` but takes the total number of seconds
/// as its argument and calculates the hours, minutes, and seconds
/// from that.
Same as `TimeTuple::new()` but takes the total number of seconds
as its argument and calculates the hours, minutes, and seconds
from that.
Same as ` TimeTuple :: new () ` but takes the total number of seconds as its argument and calculates the hours minutes and seconds from that .
pub fn from_seconds(mut total_seconds: u64) -> TimeTuple {
        while total_seconds >= 86400 {
            total_seconds -= 86400;
        }
        let h = total_seconds / 3600;
        total_seconds -= h * 3600;
        let m = total_seconds / 60;
        total_seconds -= m * 60;
        TimeTuple {
            h: h as u8,
            m: m as u8,
            s: total_seconds as u8,
        }
    }
pub fn from_seconds ( mut total_seconds : u64 ) -> TimeTuple { while total_seconds >= 86400 { total_seconds -= 86400 ; } let h = total_seconds / 3600 ; total_seconds -= h * 3600 ; let m = total_seconds / 60 ; total_seconds -= m * 60 ; TimeTuple { h : h as u8 , m : m as u8 , s : total_seconds as u8 , } }
Same as `TimeTuple::new()` but takes the total number of seconds
as its argument and calculates the hours, minutes, and seconds
from that.
Same as ` TimeTuple :: new () ` but takes the total number of seconds as its argument and calculates the hours minutes and seconds from that .
total_seconds
u64
total_seconds
u64