Function veeks_millis::naive_time_to_millis_str[][src]

pub fn naive_time_to_millis_str(nt: NaiveTime) -> String

convert chrono NaiveTime into String with millis format rounded to 1 milliday

Example

use chrono::{Datelike, NaiveDate, NaiveTime, Timelike};
let nt = NaiveTime::from_hms(13,30,00);
let millis = veeks_millis::naive_time_to_millis_str(nt);
assert_eq!(millis,"563md");