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.

Syntax

nHours = HmsToHr( sHms )

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

bullet.gif    nHours is the returned time value in decimal hours (e.g., 6.424468).

Remarks

This function converts a string to a decimal number of hours. To do the reverse conversion, use HrToHms.

Related Topics

HrToHms, ParseHours


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