DegToHms


The DegToHms function converts a time value, in decimal degrees, to a properly formatted string containing hours, minutes, and seconds. This starts from the principle that 360 degrees is equivalent to 24 hours. Use this to convert right ascension, longitude, or clock time.

Syntax

sHms = DegToHms( nDegrees )

bullet.gif    nDegrees is the decimal degrees (e.g., 125.86334).

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

Remarks

This function converts a number of degrees to an angle string containing hours, minutes, and seconds. To do the reverse conversion, use HmsToDeg.

Related Topics

HmsToDeg

HmsToHr


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