ParseDms HmsToHr

HrToHms


The HrToHms function converts a time value, in decimal hours, to a properly formatted string containing hours, minutes, and seconds.

Syntax

sHms = HrToHms( nHours )

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

    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