Skip to main content

parse_dms

Function parse_dms 

Source
pub fn parse_dms(s: &str) -> Result<Angle, AstroError>
Expand description

Parse a string as degrees-minutes-seconds.

Accepts formats like 45:30:15, 45d30m15s, 45* 30' 15", 45 deg 30 arcmin 15 arcsec. Returns the angle with the value interpreted as degrees.

Use this for Declination, altitude, azimuth, or general angular measurements.