HmsToHr
The HmsToHr function converts a time string containing hours, minutes, and seconds to a decimal hour value. Use this to convert right ascension, longitude, or clock time.
nHours = HmsToHr( sHms )
sHms is a string containing hours, minutes, and seconds (e.g., "06:25:28.085").
nHours is the returned time value in decimal hours (e.g., 6.424468).
This function converts a string to a decimal number of hours. To do the reverse conversion, use HrToHms.
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.