fn to_seconds(s: &str) -> Result<u64, String>