HrToHms


The HrToHms function converts a time value, in decimal hours, to a properly formatted string containing hours, minutes, and seconds. Use this to convert right ascension, longitude, or clock time.

Syntax

sHms = HrToHms( nHours )

bullet.gif    nHours is the decimal hours (e.g., 6.424468).

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

Remarks

This function converts a number to a time string. To do the reverse conversion, use HmsToHr.

Related Topics

HmsToHr


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