pub fn str_to_clock(src: &str) -> Result<ClockType, String>