pub fn parse_time<'a>(ts: i32) -> String {
    let timestring = format!("{:?}", ts);
    let dt: DateTime<Local> = Local.datetime_from_str(&timestring, "%s").unwrap();
    if ts == 0 {
        format!("NOW")
    } else {
        dt.format("%H:%M:%S").to_string()
    }
}
// parse_time takes a timestamp number and returns a time-formatted string.
parse_time takes a timestamp number and returns a time-formatted string.
parse_time takes a timestamp number and returns a time - formatted string .
pub fn parse_time<'a>(ts: i32) -> String {
    let timestring = format!("{:?}", ts);
    let dt: DateTime<Local> = Local.datetime_from_str(&timestring, "%s").unwrap();
    if ts == 0 {
        format!("NOW")
    } else {
        dt.format("%H:%M:%S").to_string()
    }
}
pub fn parse_time < ' a > ( ts : i32 ) -> String { let timestring = format ! ( " " ts ) ; let dt : DateTime < Local > = Local . datetime_from_str ( & timestring , " " ) . unwrap ( ) ; if ts == 0 { format ! ( " " ) } else { dt . format ( " " ) . to_string ( ) } }
parse_time takes a timestamp number and returns a time-formatted string.
parse_time takes a timestamp number and returns a time - formatted string .
ts
i32
ts
i32