pub fn sexagesimal_hms_string_to_degrees(
    hms: &str
) -> Result<f64, SexagesimalError>
Expand description

Convert a sexagesimal-formatted string in “hours minutes seconds” to a float [degrees].

§Examples

let s = "-11h49m01.062s";
let f = sexagesimal_hms_string_to_degrees(s)?;
assert_abs_diff_eq!(f, -177.254425, epsilon = 1e-6);