to_duration

Function to_duration 

Source
pub fn to_duration(num: &Number) -> Result<Duration, String>