HmsToDeg


The HmsToDeg function converts a time string containing hours, minutes, and seconds to a decimal number of degrees. Use this to convert right ascension, longitude, or clock time.

Syntax

nDegrees = HmsToDeg( sHms )

bullet.gif    sHms is a string containing hours, minutes, and seconds (e.g., "06:25:28.085").

bullet.gif    nDegrees is the returned angle value in units of degrees (e.g., 124.56238).

Remarks

This function converts a string to degrees. To do the reverse conversion, use DegToHms.

Related Topics

DegToHms, HrToHms, ParseHours


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.