[][src]Function ms_converter::ms

pub fn ms(str: &str) -> Result<f64, Error>

Convert time string to a milliseconds

Example:

use crate::ms_converter::ms;

let value = ms("1d").unwrap();
assert_eq!(value, 86400000.)